From f6a487181ae950f376b131ce797f7cd058498401 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Thu, 25 Oct 2018 18:55:48 +0200
Subject: Fixed a Use-After-Free in the symbols panel.

---
 src/gui/panels/symbols.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c
index 6a60366..e0a5857 100644
--- a/src/gui/panels/symbols.c
+++ b/src/gui/panels/symbols.c
@@ -825,8 +825,6 @@ static void reload_symbols_for_new_list_view(const GSymbolsPanel *panel, GtkStat
         else
             name = NULL;
 
-        free(original);
-
         addr = get_mrange_addr(g_binary_symbol_get_range(symbol));
 
         if (has_virt)
@@ -853,6 +851,8 @@ static void reload_symbols_for_new_list_view(const GSymbolsPanel *panel, GtkStat
         if (name != NULL)
             free(name);
 
+        free(original);
+
  rsfnlv_next:
 
         g_object_unref(G_OBJECT(symbol));
-- 
cgit v0.11.2-87-g4458