daily update
[deliverable/binutils-gdb.git] / binutils / srconv.c
index c288fd5df85d19c6863c2d644a4968dad75384ff..dcf33b9a7012f7676e41cdad1fe6a6f93a41e9e5 100644 (file)
@@ -32,6 +32,7 @@
 #include "sysroff.h"
 #include "coffgrok.h"
 #include "libiberty.h"
+#include "filenames.h"
 #include "getopt.h"
 
 #include "coff/internal.h"
@@ -1577,6 +1578,7 @@ wr_sc (struct coff_ofile *ptr, struct coff_sfile *sfile)
       sysroff_swap_sc_out (file, &sc);
       scount++;
     }
+  free (info);
   return scount;
 }
 
@@ -1818,7 +1820,7 @@ main (int ac, char **av)
          ++optind;
          if (optind < ac)
            show_usage (stderr, 1);
-         if (strcmp (input_file, output_file) == 0)
+         if (filename_cmp (input_file, output_file) == 0)
            {
              fatal (_("input and output files must be different"));
            }
This page took 0.023833 seconds and 4 git commands to generate.