libdwfl: don't bother freeing frames outside of dwfl_thread_getframes
authorOmar Sandoval <osandov@fb.com>
Mon, 7 Oct 2019 09:05:35 +0000 (02:05 -0700)
committerMark Wielaard <mark@klomp.org>
Tue, 29 Oct 2019 16:48:05 +0000 (17:48 +0100)
commit6f447ef7f0c5000e88d11312c06df9d5021d4ecd
tree6c40b58f0a7aeef1e28588bb34420bdc33a4befe
parentb2dddd3389a8005a7e93bc21b2932156899e1aac
libdwfl: don't bother freeing frames outside of dwfl_thread_getframes

dwfl_thread_getframes always frees the state before returning, so
dwfl_getthreads and getthread don't need to do it. The only place
we allocate the state is from dwfl_thread_getframes and we always
free it before returning from that function.

Signed-off-by: Omar Sandoval <osandov@fb.com>
libdwfl/ChangeLog
libdwfl/dwfl_frame.c