From: Andrew Tridgell Date: Mon, 15 Jun 2026 20:43:20 +0000 (+1000) Subject: scan-build: close a test-helper FILE* leak X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f5884a3bb88e6ee568708184dda16e483b53775;p=thirdparty%2Frsync.git scan-build: close a test-helper FILE* leak wildtest.c: close the test file before main() returns (a real, if exit-benign, FILE* leak flagged by scan-build). --- diff --git a/wildtest.c b/wildtest.c index 10cab003..df87f924 100644 --- a/wildtest.c +++ b/wildtest.c @@ -210,6 +210,8 @@ main(int argc, char **argv) string[0], string[1]); } + fclose(fp); + if (!wildmatch_errors) fputs("No", stdout); else