forked from Imagelibrary/binutils-gdb
libctf: link: fix error handling
We were calling the wrong error function if opening failed, causing leaks. libctf/ * ctf-link.c (ctf_link_deduplicating_per_cu): Fix error handling.
This commit is contained in:
@@ -1221,7 +1221,7 @@ ctf_link_deduplicating_per_cu (ctf_dict_t *fp)
|
||||
&parents)) == NULL)
|
||||
{
|
||||
ctf_next_destroy (i);
|
||||
goto err_inputs;
|
||||
goto err_open_inputs;
|
||||
}
|
||||
|
||||
if ((out = ctf_create (&err)) == NULL)
|
||||
|
||||
Reference in New Issue
Block a user