diff options
Diffstat (limited to 'binutils/nm.c')
-rw-r--r-- | binutils/nm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/nm.c b/binutils/nm.c index 99d2027..0ee3f88 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 |