summary refs log tree commit diff
path: root/locale/programs
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-05-11 17:56:19 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-05-11 17:57:30 +0530
commit213573f86eae0b5ff70a4f71ed6f809aa76991f5 (patch)
tree0b0012b16e1ca6d23d521a6d824cd38d0ff033f3 /locale/programs
parentddd4a2d3c64642b34d95743db9032c2bb31c16b2 (diff)
downloadglibc-213573f86eae0b5ff70a4f71ed6f809aa76991f5.tar.gz
glibc-213573f86eae0b5ff70a4f71ed6f809aa76991f5.tar.xz
glibc-213573f86eae0b5ff70a4f71ed6f809aa76991f5.zip
write_archive_locales: Fix memory leak
Fix memory leak identified by coverity.
Diffstat (limited to 'locale/programs')
-rw-r--r--locale/programs/locale.c2
1 files changed, 2 insertions, 0 deletions
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;
     }