summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-01-20 10:30:59 +0100
committerMichael Mann <mmann78@netscape.net>2017-01-21 00:25:15 +0000
commit5c7b0b96878c269b4e1852c797f548e40af8f836 (patch)
tree99496babc24689dfed181d57af4a49bc9165d537
parent5235c2ec72ff3211bb05369e8d0c8b43c7c55c23 (diff)
downloadwireshark-5c7b0b96878c269b4e1852c797f548e40af8f836.tar.gz
decode_as: clean memory on exit.
Change-Id: Ifbbfc1ff71c32c2e9b758b55d32bff9a1ccd1576 Reviewed-on: https://code.wireshark.org/review/19689 Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/decode_as.c2
-rw-r--r--epan/epan.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/epan/decode_as.c b/epan/decode_as.c
index 5f93897580..f7da809294 100644
--- a/epan/decode_as.c
+++ b/epan/decode_as.c
@@ -444,6 +444,8 @@ decode_clear_all(void)
g_slist_free(dissector_reset_list);
dissector_reset_list = NULL;
+ g_list_free(decode_as_list);
+
decode_dcerpc_reset_all();
}
diff --git a/epan/epan.c b/epan/epan.c
index d19109afe7..1252f1e793 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -59,6 +59,7 @@
#include "stat_tap_ui.h"
#include "follow.h"
#include "disabled_protos.h"
+#include "decode_as.h"
#ifdef HAVE_LUA
#include <lua.h>
@@ -207,6 +208,7 @@ epan_cleanup(void)
dfilter_cleanup();
proto_cleanup();
prefs_cleanup();
+ decode_clear_all();
packet_cleanup();
expert_cleanup();
capture_dissector_cleanup();