Message ID | 20200831134315.1221-4-pannengyuan@huawei.com |
---|---|
State | Accepted |
Commit | 0c4c8671d79023a05d916e73d9b4399abff9c0a0 |
Headers | show |
Series | fix some error memleaks | expand |
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; }