diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-05-18 09:07:06 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-05-18 09:07:06 +0530 |
commit | 2317101658488102f54d4c700fd2da839b6fec29 (patch) | |
tree | f1522d8c0c795d37b3f091c5f983cc91a8a659e7 /locale | |
parent | e5ac7bd679de52f70b52b2d0c2135de8d57cba8c (diff) | |
download | glibc-2317101658488102f54d4c700fd2da839b6fec29.tar.gz glibc-2317101658488102f54d4c700fd2da839b6fec29.tar.xz glibc-2317101658488102f54d4c700fd2da839b6fec29.zip |
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>
Diffstat (limited to 'locale')
-rw-r--r-- | locale/programs/locarchive.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c index 6bb189ae37..f38e835c52 100644 --- a/locale/programs/locarchive.c +++ b/locale/programs/locarchive.c @@ -1742,6 +1742,7 @@ show_archive_content (const char *fname, int verbose) : locnames[idx]); } } + free (files); } else for (cnt = 0; cnt < used; ++cnt) |