]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Cleanup user_core resources on failure in dwfl_core_file_report.
authorMark Wielaard <mark@klomp.org>
Fri, 8 May 2020 21:35:12 +0000 (23:35 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 14 May 2020 12:30:57 +0000 (14:30 +0200)
commit101ca06966569e9edaa1c7eeb36e222903481414
tree7a95686f22653875621922f77c18ce6591decccf
parenta8493c12a707390fb8307fe60fe83e1aed960f89
libdwfl: Cleanup user_core resources on failure in dwfl_core_file_report.

GCC10 -fanalyzer noticed that we allocate, but don't always cleanup the
dwfl->user_core if it wasn't set yet on error. In theory dwfl_module_end
should take care of it, but it is cleaner and less confusing to just do
it here.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/core-file.c