Convert location_spec_empty_p to a method
[binutils-gdb.git] / binutils / coffdump.c
index 37274d9d44ea09427c16d0af64d0979e5c6db6d9..bccc395e5f881f1878a82d892c9dfad25d5272f1 100644 (file)
@@ -1,5 +1,5 @@
 /* Coff file dumper.
-   Copyright (C) 1994-2021 Free Software Foundation, Inc.
+   Copyright (C) 1994-2022 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -541,10 +541,7 @@ main (int ac, char **av)
       bfd_nonfatal (input_file);
 
       if (bfd_get_error () == bfd_error_file_ambiguously_recognized)
-       {
-         list_matching_formats (matching);
-         free (matching);
-       }
+       list_matching_formats (matching);
       exit (1);
     }