From: Nick Alcock Date: Mon, 15 Jul 2024 21:05:57 +0000 (+0100) Subject: libctf: link: fix error handling X-Git-Tag: binutils-2_43~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0eea22de3852ba0fe61ccb012936f67713120a6d;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/libctf/ctf-link.c b/libctf/ctf-link.c index 42b2911e4f2..7b68d709628 100644 --- a/libctf/ctf-link.c +++ b/libctf/ctf-link.c @@ -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)