From d437724a56dfa2150a03976497f429164e19e802 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 26 Jan 2023 19:12:09 +1030 Subject: [PATCH] Free gas/dwarf2dbg.c dirs Entries are allocated with xmemdup0. * dwarf2dbg.c (dwarf2_cleanup): Free dirs entries. --- gas/dwarf2dbg.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.30.2