mbind gas tests and supports_gnu_osabi testsuite infrastructure
[deliverable/binutils-gdb.git] / binutils / nm.c
index 2ee38c29f76a95300750b38a0dab2b13f510ffa5..0ee3f8838654adb39054f1ad64cc4eab2b4cc288 100644 (file)
@@ -1,5 +1,5 @@
 /* nm.c -- Describe symbol table of a rel file.
-   Copyright (C) 1991-2019 Free Software Foundation, Inc.
+   Copyright (C) 1991-2020 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -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
This page took 0.026223 seconds and 4 git commands to generate.