aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-11-09 00:08:27 +0000
committerEvan Huus <eapache@gmail.com>2012-11-09 00:08:27 +0000
commit9f03dfb42d1e25537233e7230ec0d41def71b2e4 (patch)
tree5d9e90e09ede26d59bac35ed5ae22a18f97c224e /epan/packet.c
parent82501433e32701dff181bc7bc147b7e2ecaa9d58 (diff)
Enter and leave wmem's file scope appropriately.
svn path=/trunk/; revision=45977
Diffstat (limited to 'epan/packet.c')
-rw-r--r--epan/packet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/packet.c b/epan/packet.c
index 08dadff6c9..5e1c180b3c 100644
--- a/epan/packet.c
+++ b/epan/packet.c
@@ -51,6 +51,7 @@
#include "epan_dissect.h"
#include "emem.h"
+#include "wmem/wmem.h"
#include <epan/reassemble.h>
#include <epan/stream.h>
@@ -137,6 +138,8 @@ init_dissection(void)
/* Reclaim and reinitialize all memory of seasonal scope */
se_free_all();
+ wmem_enter_file_scope();
+
/*
* Reinitialize resolution information. We do initialization here in
* case we need to resolve between captures.
@@ -183,6 +186,8 @@ cleanup_dissection(void)
/* Initialize the expert infos */
expert_cleanup();
+
+ wmem_leave_file_scope();
/*
* Reinitialize resolution information. We do initialization here in