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)
{
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