]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
scan-build: close a test-helper FILE* leak
authorAndrew Tridgell <andrew@tridgell.net>
Mon, 15 Jun 2026 20:43:20 +0000 (06:43 +1000)
committerAndrew Tridgell <andrew@tridgell.net>
Mon, 15 Jun 2026 22:55:39 +0000 (08:55 +1000)
wildtest.c: close the test file before main() returns (a real, if
exit-benign, FILE* leak flagged by scan-build).

wildtest.c

index 10cab003cd144fed20519220f3e692018d303d6f..df87f9240980ee6bebd9fc386ff295d6d00f05c4 100644 (file)
@@ -210,6 +210,8 @@ main(int argc, char **argv)
                 string[0], string[1]);
     }
 
+    fclose(fp);
+
     if (!wildmatch_errors)
        fputs("No", stdout);
     else