aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ipars.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-09-13 10:13:19 +0000
committerJörg Mayer <jmayer@loplof.de>2013-09-13 10:13:19 +0000
commit23d3e3d665ce2826477bf04ceabe961330cfcd5a (patch)
tree5ba7e0d34e5a234c811a34fdd9e4ba2b52dd1848 /epan/dissectors/packet-ipars.c
parent1e762e315dcb07f8d78d7aabc20f5065a8ed43f0 (diff)
Dario Lombardo <lomato@gmail.com> via
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9147 Migration from emem to wmem for trivial cases (ep_alloc only). svn path=/trunk/; revision=52002
Diffstat (limited to 'epan/dissectors/packet-ipars.c')
-rw-r--r--epan/dissectors/packet-ipars.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ipars.c b/epan/dissectors/packet-ipars.c
index 572704f09b..5ad5449104 100644
--- a/epan/dissectors/packet-ipars.c
+++ b/epan/dissectors/packet-ipars.c
@@ -31,7 +31,7 @@
#include <glib.h>
#include <epan/packet.h>
-#include <epan/emem.h>
+#include <epan/wmem/wmem.h>
static int proto_ipars = -1;
static guint8 ipars_eomtype = G_MAXUINT8;
@@ -58,7 +58,7 @@ dissect_ipars(tvbuff_t *tvb, packet_info *pinfo _U_ , proto_tree *tree)
int offset = 0;
gchar *eom_msg;
- eom_msg = (gchar *)ep_alloc(MAX_EOM_MSG_SIZE);
+ eom_msg = (gchar *)wmem_alloc(wmem_packet_scope(), MAX_EOM_MSG_SIZE);
eom_msg[0] = 0;
col_clear(pinfo->cinfo, COL_INFO);