mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
PR25362, memory leak in nm
PR 25362 * nm.c (display_rel_file): Free dyn_syms.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user