summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-18 09:56:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-18 09:56:41 (GMT)
commit3ea00253fa74017ce82bb72d5e11414ab5ee7101 (patch)
treea46b0f2be59df7e05f94ef564c7a34dc12b1fd39 /src
parentc7b064cf1470974aa304d181e1174f9a329d4d49 (diff)
Fixed a UAF in the symbols panel when filtering.
Diffstat (limited to 'src')
-rw-r--r--src/gui/panels/symbols.c4
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));