fix: test: Add missing fclose() when applying updates failed (rpz/testlib)
In rpz system tests, we could leak file if the applying the updates has failed. Add the missing fclose() before returning. Merge branch 'ondrej/add-missing-flose-to-rpz-testlib' into 'main' See merge request isc-projects/bind9!9317
This commit is contained in:
@@ -1352,6 +1352,7 @@ load_all_updates(const char *fname, trpz_result_t **presults, size_t *pnresults,
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Error: could not apply update \"%s\"\n", lptr);
|
||||
fclose(f);
|
||||
return (-1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user