mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
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:
parent
ab612a67a2
commit
0eea22de38
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user