* [COMMITTED] write_archive_locales: Fix memory leak
@ 2021-05-11 12:28 Siddhesh Poyarekar
0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2021-05-11 12:28 UTC (permalink / raw)
To: libc-alpha
Fix memory leak identified by coverity.
---
locale/programs/locale.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
--
2.31.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-11 12:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 12:28 [COMMITTED] write_archive_locales: Fix memory leak Siddhesh Poyarekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).