diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-18 09:56:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-18 09:56:41 (GMT) |
commit | 3ea00253fa74017ce82bb72d5e11414ab5ee7101 (patch) | |
tree | a46b0f2be59df7e05f94ef564c7a34dc12b1fd39 /src/gui | |
parent | c7b064cf1470974aa304d181e1174f9a329d4d49 (diff) |
Fixed a UAF in the symbols panel when filtering.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/panels/symbols.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c index 74d1cf9..a4ee454 100644 --- a/src/gui/panels/symbols.c +++ b/src/gui/panels/symbols.c @@ -1114,8 +1114,6 @@ static void reload_symbols_for_new_tree_view(const GSymbolsPanel *panel, GtkStat else name = NULL; - free(original); - addr = get_mrange_addr(g_binary_symbol_get_range(symbol)); vmpa2_virt_to_string(addr, size, virt, NULL); @@ -1137,6 +1135,8 @@ static void reload_symbols_for_new_tree_view(const GSymbolsPanel *panel, GtkStat if (name != NULL) free(name); + free(original); + rsfntv_next: g_object_unref(G_OBJECT(symbol)); |