From: Alan Modra Date: Thu, 26 Jan 2023 08:42:09 +0000 (+1030) Subject: Free gas/dwarf2dbg.c dirs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d437724a56dfa2150a03976497f429164e19e802;p=binutils-gdb.git Free gas/dwarf2dbg.c dirs Entries are allocated with xmemdup0. * dwarf2dbg.c (dwarf2_cleanup): Free dirs entries. --- diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 5f2f58ff7b0..c7d9e8ef72f 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -3096,6 +3096,8 @@ dwarf2_cleanup (void) { purge_generated_debug (true); free (files); + for (unsigned int i = 0; i < dirs_in_use; i++) + free (dirs[i]); free (dirs); }