From: Florian Weimer Date: Thu, 6 Nov 2025 13:33:22 +0000 (+0100) Subject: support: Fix FILE * leak in check_for_unshare_hints in test-container X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20a2a756089eacd7e7f4c02e381e82b5d0e40a2c;p=thirdparty%2Fglibc.git support: Fix FILE * leak in check_for_unshare_hints in test-container The file opened via fopen is never closed. --- diff --git a/support/test-container.c b/support/test-container.c index ae643d307e..f48cdaea68 100644 --- a/support/test-container.c +++ b/support/test-container.c @@ -705,6 +705,7 @@ check_for_unshare_hints (int require_pidns) val = -1; /* Sentinel. */ int cnt = fscanf (f, "%d", &val); + fclose (f); if (cnt == 1 && val != files[i].bad_value) continue;