From 213573f86eae0b5ff70a4f71ed6f809aa76991f5 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Tue, 11 May 2021 17:56:19 +0530 Subject: write_archive_locales: Fix memory leak Fix memory leak identified by coverity. --- locale/programs/locale.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/programs') diff --git a/locale/programs/locale.c b/locale/programs/locale.c index 575b208e82..ca0a95be99 100644 --- a/locale/programs/locale.c +++ b/locale/programs/locale.c @@ -713,6 +713,8 @@ write_archive_locales (void **all_datap, char *linebuf) locrec->record[LC_CTYPE].len); } + free (names); + ret = used; } -- cgit 1.4.1