]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
write_archive_locales: Fix memory leak
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 11 May 2021 12:26:19 +0000 (17:56 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 11 May 2021 12:27:30 +0000 (17:57 +0530)
Fix memory leak identified by coverity.

locale/programs/locale.c

index 575b208e82d7bff89b20fce6cd5392cdea067f2a..ca0a95be996c1021d2c92fd69a1ae272b008c20a 100644 (file)
@@ -713,6 +713,8 @@ write_archive_locales (void **all_datap, char *linebuf)
                          locrec->record[LC_CTYPE].len);
        }
 
+      free (names);
+
       ret = used;
     }