diff options
author | AlexChen <alex.chen@huawei.com> | 2020-08-26 18:15:53 +0800 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-10-27 16:48:40 +0100 |
commit | 885538fdc9e225a502f5da69e15909664308aa93 (patch) | |
tree | 352559098d4d97d5f109edf43205cc969ea9136f /chardev/chardev-internal.h | |
parent | 4c5b97bfd0dd54dc27717ae8d1cd10e14eef1430 (diff) |
elf2dmp: Fix memory leak on main() error paths
The 'kdgb' is allocating memory in get_kdbg(), but it is not freed
in both fill_header() and fill_context() failed branches, fix it.
Signed-off-by: AlexChen <alex.chen@huawei.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <5F463659.8080101@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'chardev/chardev-internal.h')
0 files changed, 0 insertions, 0 deletions