From 8e7e446446b2de0c44e453a298718a0411f47205 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 2 Mar 2021 15:10:05 +0000 Subject: libctf: free ctf_dynsyms properly In the "no symbols" case (commonplace for executables), we were freeing the ctf_dynsyms using free(), instead of ctf_dynhash_destroy(), leaking a little memory. (This is harmless in the common case of ld usage, but libctf might be used by persistent processes too.) libctf/ChangeLog 2021-03-02 Nick Alcock * ctf-link.c (ctf_link_shuffle_syms): Free ctf_dynsyms properly. --- libctf/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libctf/ChangeLog') diff --git a/libctf/ChangeLog b/libctf/ChangeLog index f0a1754..8fa98c6 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,9 @@ 2021-03-02 Nick Alcock + * ctf-link.c (ctf_link_shuffle_syms): Free ctf_dynsyms properly. + +2021-03-02 Nick Alcock + * ctf-dump.c (ctf_dump_format_type): Fix signed/unsigned confusion. 2021-03-02 Nick Alcock -- cgit v1.1