]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: link: fix error handling
authorNick Alcock <nick.alcock@oracle.com>
Mon, 15 Jul 2024 21:05:57 +0000 (22:05 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 31 Jul 2024 20:02:05 +0000 (21:02 +0100)
We were calling the wrong error function if opening failed, causing leaks.

libctf/
* ctf-link.c (ctf_link_deduplicating_per_cu): Fix error handling.

libctf/ctf-link.c

index 42b2911e4f2c6bca80547ab84849a6b04781481c..7b68d7096285bbd0d8268571133c4368957be18f 100644 (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)