mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-15 22:00:47 +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:
@@ -1221,7 +1221,7 @@ ctf_link_deduplicating_per_cu (ctf_dict_t *fp)
|
|||||||
&parents)) == NULL)
|
&parents)) == NULL)
|
||||||
{
|
{
|
||||||
ctf_next_destroy (i);
|
ctf_next_destroy (i);
|
||||||
goto err_inputs;
|
goto err_open_inputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((out = ctf_create (&err)) == NULL)
|
if ((out = ctf_create (&err)) == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user