* configure.in (sparc64): Set arch to v9-64.
[deliverable/binutils-gdb.git] / binutils / rescoff.c
index 0f83e545d99328bbc05ad2f828ceb42644b624e3..6c7f21b15e3d4cd18a6b8d9169c4ef5c67e5bfdb 100644 (file)
@@ -531,9 +531,6 @@ write_coff_file (filename, target, resources)
 
   bfd_set_reloc (abfd, sec, cwi.relocs, cwi.reloc_count);
 
-  /* We allocated the relocs array using malloc.  */
-  free (cwi.relocs);
-
   offset = 0;
   for (d = cwi.dirs.d; d != NULL; d = d->next)
     {
@@ -564,6 +561,9 @@ write_coff_file (filename, target, resources)
 
   if (! bfd_close (abfd))
     bfd_fatal ("bfd_close");
+
+  /* We allocated the relocs array using malloc.  */
+  free (cwi.relocs);
 }
 
 /* Work out the sizes of the various fixed size resource directory
This page took 0.022795 seconds and 4 git commands to generate.