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
1 changed files with 1 additions and 0 deletions

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;