* elfcode.h (elf_checksum_contents): Free contents.
[deliverable/binutils-gdb.git] / bfd / merge.c
index aef3cf35a554ab4bbdc553d7729a4b9d1d6172fe..0e49faeaffebd610d9462138a444522ae96a2469 100644 (file)
@@ -885,3 +885,17 @@ _bfd_merged_section_offset (bfd *output_bfd ATTRIBUTE_UNUSED, asection **psec,
   *psec = entry->secinfo->sec;
   return entry->u.index + (secinfo->contents + offset - p);
 }
+
+/* Tidy up when done.  */
+
+void
+_bfd_merge_sections_free (void *xsinfo)
+{
+  struct sec_merge_info *sinfo;
+
+  for (sinfo = (struct sec_merge_info *) xsinfo; sinfo; sinfo = sinfo->next)
+    {
+      bfd_hash_table_free (&sinfo->htab->table);
+      free (sinfo->htab);
+    }
+}
This page took 0.025829 seconds and 4 git commands to generate.