1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-06 12:01:08 +03:00

support: Fix FILE * leak in check_for_unshare_hints in test-container

The file opened via fopen is never closed.
This commit is contained in:
Florian Weimer
2025-11-06 14:33:22 +01:00
parent 975c8c4e22
commit 20a2a75608

View File

@@ -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;