libctf, bfd: fix ctf_bfdopen_ctfsect opening symbol and string sections
[deliverable/binutils-gdb.git] / libctf / ctf-archive.c
index 5c1692219e892f2f32cd54ce5878f8e26bedf884..a13bac8cd6ae44402cf8669e3c645ddc326cba81 100644 (file)
@@ -405,7 +405,7 @@ ctf_arc_close (ctf_archive_t *arc)
   else
     ctf_file_close (arc->ctfi_file);
   free ((void *) arc->ctfi_symsect.cts_data);
-  free ((void *) arc->ctfi_strsect.cts_data);
+  /* Do not free the ctfi_strsect: it is bound to the bfd.  */
   free (arc->ctfi_data);
   free (arc);
 }
This page took 0.024153 seconds and 4 git commands to generate.