projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd61b2d
)
Free gas/dwarf2dbg.c dirs
author
Alan Modra
<amodra@gmail.com>
Thu, 26 Jan 2023 08:42:09 +0000
(19:12 +1030)
committer
Alan Modra
<amodra@gmail.com>
Thu, 26 Jan 2023 21:48:46 +0000
(08:18 +1030)
Entries are allocated with xmemdup0.
* dwarf2dbg.c (dwarf2_cleanup): Free dirs entries.
gas/dwarf2dbg.c
patch
|
blob
|
history
diff --git
a/gas/dwarf2dbg.c
b/gas/dwarf2dbg.c
index 5f2f58ff7b05c4556943d2993af60defaf1bb7fd..c7d9e8ef72fe0a1eafaa8fb705c99a0c457469d5 100644
(file)
--- 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);
}