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:
Nick Alcock 2024-07-15 22:05:57 +01:00
parent ab612a67a2
commit 0eea22de38
No known key found for this signature in database

View File

@ -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)