From: xuqing yang Date: Wed, 10 Jun 2026 14:12:05 +0000 (+0000) Subject: PR 34275 double free in ctf_link_deduplicating_per_cu X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2ba16132fe4ecdb1ae112e017266b045de9dd80;p=thirdparty%2Fbinutils-gdb.git PR 34275 double free in ctf_link_deduplicating_per_cu * ctf-link.c (ctf_link_deduplicating_per_cu): Don't call ctf_next_destroy twice on error path. --- diff --git a/libctf/ctf-link.c b/libctf/ctf-link.c index 9fdd39fdb95..c6d0a86f4b7 100644 --- a/libctf/ctf-link.c +++ b/libctf/ctf-link.c @@ -1187,10 +1187,7 @@ ctf_link_deduplicating_per_cu (ctf_dict_t *fp) if ((inputs = ctf_link_deduplicating_open_inputs (fp, in, ninputs, &parents)) == NULL) - { - ctf_next_destroy (i); - goto err_open_inputs; - } + goto err_open_inputs; if ((out = ctf_create (&err)) == NULL) {