* PR25362, memory leak in nm
@ 2020-01-13 12:09 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-01-13 12:09 UTC (permalink / raw)
To: binutils
PR 25362
* nm.c (display_rel_file): Free dyn_syms.
diff --git a/binutils/nm.c b/binutils/nm.c
index 99d2027250..0ee3f88386 100644
--- a/binutils/nm.c
+++ b/binutils/nm.c
@@ -1171,6 +1171,8 @@ display_rel_file (bfd *abfd, bfd *archive_bfd)
*symp = 0;
symcount += synth_count;
}
+ if (!dynamic && dyn_syms != NULL)
+ free (dyn_syms);
}
/* lto_slim_object is set to false when a bfd is loaded with a compiler
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-13 12:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 12:09 PR25362, memory leak in nm Alan Modra
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).