elf2dmp/pdb: Plug memleak in pdb_init_from_file
commit0c4c8671d79023a05d916e73d9b4399abff9c0a0
authorPan Nengyuan <pannengyuan@huawei.com>
Fri, 23 Oct 2020 06:12:15 +0000 (23 14:12 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 13 Dec 2020 22:56:16 +0000 (13 23:56 +0100)
tree3980124c4dedc923b6982ccf59c4d3470a7794fa
parent514284d73d09910451bf00640ee52088e71dbc4b
elf2dmp/pdb: Plug memleak in pdb_init_from_file

Missing g_error_free in pdb_init_from_file() 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-5-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
contrib/elf2dmp/pdb.c