From 2317101658488102f54d4c700fd2da839b6fec29 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 18 May 2021 09:07:06 +0530 Subject: [PATCH] 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 --- locale/programs/locarchive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c index 6bb189a..f38e835 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) -- 2.7.4