libctf: fix use-after-free in function dumping
authorNick Alcock <nick.alcock@oracle.com>
Mon, 3 Jun 2019 19:26:02 +0000 (20:26 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 4 Jun 2019 16:05:08 +0000 (17:05 +0100)
commit941accce38bc70a23c62e3c9439b67bf23298124
tree995cef6235d637bfb7a2cb87cea03dab1ade001d
parenta610aa4f9cf61d38b8e0fe60dfaac078d636089f
libctf: fix use-after-free in function dumping

This is actually a free-before-initializing (i.e. a free of garbage).

libctf/
* ctf-dump.c (ctf_dump_funcs): Free in the right place.
libctf/ChangeLog
libctf/ctf-dump.c