On 23/10/2020 08.12, Chen Qun wrote: > From: Pan Nengyuan <[email protected]> > > Missing g_error_free in pdb_init_from_file() error path. Fix that. > > Reported-by: Euler Robot <[email protected]> > Signed-off-by: Pan Nengyuan <[email protected]> > Reviewed-by: Viktor Prutyanov <[email protected]> > Reviewed-by: Li Qiang <[email protected]> > Signed-off-by: Chen Qun <[email protected]> > --- > contrib/elf2dmp/pdb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/contrib/elf2dmp/pdb.c b/contrib/elf2dmp/pdb.c > index a5bd40c99d..b3a6547068 100644 > --- a/contrib/elf2dmp/pdb.c > +++ b/contrib/elf2dmp/pdb.c > @@ -285,6 +285,7 @@ int pdb_init_from_file(const char *name, struct > pdb_reader *reader) > reader->gmf = g_mapped_file_new(name, TRUE, &gerr); > if (gerr) { > eprintf("Failed to map PDB file \'%s\'\n", name); > + g_error_free(gerr); > return 1; > } > >
Reviewed-by: Thomas Huth <[email protected]>
