elf2dmp/qemu_elf: Plug memleak in QEMU_Elf_init
commit514284d73d09910451bf00640ee52088e71dbc4b
authorPan Nengyuan <pannengyuan@huawei.com>
Fri, 23 Oct 2020 06:12:14 +0000 (23 14:12 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 13 Dec 2020 22:56:16 +0000 (13 23:56 +0100)
treec4020970d27a95d2656dfac483ad1f22ac952245
parent8e2c76bd3ff2e81738195bdcc6bfdb8b2ddc7649
elf2dmp/qemu_elf: Plug memleak in QEMU_Elf_init

Missing g_error_free in QEMU_Elf_init() error path. Fix that.

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Reviewed-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20201023061218.2080844-4-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
contrib/elf2dmp/qemu_elf.c