libctf: don't leak hash keys or values on value replacement
[deliverable/binutils-gdb.git] / libctf / ctf-open.c
index f4179cb78e1b38f75f6ca8dd3aaafb3030c12882..2e1913bb3738c0689e10405f4264e3ed6bee80bb 100644 (file)
@@ -1625,6 +1625,10 @@ ctf_file_close (ctf_file_t *fp)
   ctf_free (fp->ctf_dynbase);
 
   ctf_dynhash_destroy (fp->ctf_syn_ext_strtab);
+  ctf_dynhash_destroy (fp->ctf_link_inputs);
+  ctf_dynhash_destroy (fp->ctf_link_outputs);
+  ctf_dynhash_destroy (fp->ctf_link_type_mapping);
+  ctf_dynhash_destroy (fp->ctf_link_cu_mapping);
 
   ctf_free (fp->ctf_sxlate);
   ctf_free (fp->ctf_txlate);
This page took 0.024194 seconds and 4 git commands to generate.