mirror of git://sourceware.org/git/glibc.git
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:
parent
975c8c4e22
commit
20a2a75608
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue