Commit 3b9a6f0d authored by Mark Andrews's avatar Mark Andrews
Browse files

fclose origfile and zonefile

(cherry picked from commit 455bb232)
parent 66e81f72
Pipeline #4536 passed with stages
in 9 minutes and 53 seconds
......@@ -177,6 +177,7 @@ ATF_TC_BODY(asyncload_zone, tc) {
origfile = fopen("./testdata/zt/zone1.db", "r+b");
ATF_CHECK(origfile != NULL);
n = fread(buf, 1, 4096, origfile);
fclose(origfile);
fwrite(buf, 1, n, zonefile);
fflush(zonefile);
......@@ -201,6 +202,7 @@ ATF_TC_BODY(asyncload_zone, tc) {
*/
fprintf(zonefile, "\nb in b 1.2.3.4\n");
fflush(zonefile);
fclose(zonefile);
args.arg1 = zone;
args.arg2 = &done;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment