mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
show_archive_content: Fix trivial memory leak
Fix trivial leak identified by coverity. The program runs to exit and the leak doesn't grow, but it's just cleaner to free the allocated memory. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
e5ac7bd679
commit
2317101658
@ -1742,6 +1742,7 @@ show_archive_content (const char *fname, int verbose)
|
||||
: locnames[idx]);
|
||||
}
|
||||
}
|
||||
free (files);
|
||||
}
|
||||
else
|
||||
for (cnt = 0; cnt < used; ++cnt)
|
||||
|
Loading…
Reference in New Issue
Block a user