diff options
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ctf-link.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libctf/ctf-link.c b/libctf/ctf-link.c index 702f2b4..902b440 100644 --- a/libctf/ctf-link.c +++ b/libctf/ctf-link.c @@ -431,7 +431,10 @@ ctf_link_add_cu_mapping (ctf_dict_t *fp, const char *from, const char *to) } } else - free (t); + { + free (t); + t = NULL; + } if (ctf_dynhash_insert (one_out, f, NULL) < 0) { |