diff options
author | 2024-07-15 22:05:57 +0100 | |
---|---|---|
committer | 2024-07-31 21:02:05 +0100 | |
commit | ad633f2115b96cebcb601d5ac60241da16b343ca (patch) | |
tree | 289a5d9af458c68d3c638ecb127eb5f9accc14f1 /libctf | |
parent | libctf, open: Fix enum error handling path (diff) | |
download | binutils-gdb-ad633f2115b96cebcb601d5ac60241da16b343ca.tar.gz binutils-gdb-ad633f2115b96cebcb601d5ac60241da16b343ca.tar.bz2 binutils-gdb-ad633f2115b96cebcb601d5ac60241da16b343ca.zip |
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.
Diffstat (limited to 'libctf')
-rw-r--r-- | libctf/ctf-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |