]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Fix memory leak in link_map.c dwfl_link_map_report.
authorMark Wielaard <mjw@redhat.com>
Tue, 1 Dec 2015 22:11:55 +0000 (23:11 +0100)
committerMark Wielaard <mjw@redhat.com>
Sat, 2 Jan 2016 19:37:45 +0000 (20:37 +0100)
commit69d68dd50282469ddc45fc462a2506176b8f3289
tree99043668ab9453d8e626248e076f3f0da12a791b
parent355b408bb9aa49703544fa4086e1ae463737fcf6
libdwfl: Fix memory leak in link_map.c dwfl_link_map_report.

The phdrs buffer could come from the core file or through the executable.
dwfl_link_map_report would leak the buffer if it came from the executable.
Track where the buffer came from and free appropriately.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libdwfl/ChangeLog
libdwfl/link_map.c