[PATCH] show_archive_content: Fix trivial memory leak
Siddhesh Poyarekar
siddhesh@sourceware.org
Tue May 11 17:17:38 GMT 2021
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.
---
locale/programs/locarchive.c | 1 +
1 file changed, 1 insertion(+)
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)
--
2.31.1
More information about the Libc-alpha
mailing list