aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-xtp.c')
-rw-r--r--epan/dissectors/packet-xtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c
index 8d13cb9b64..4e42394515 100644
--- a/epan/dissectors/packet-xtp.c
+++ b/epan/dissectors/packet-xtp.c
@@ -33,6 +33,7 @@
#include <epan/expert.h>
#include <epan/ipproto.h>
#include <epan/in_cksum.h>
+#include <epan/wmem/wmem.h>
#define XTP_VERSION_4 0x001
@@ -954,7 +955,7 @@ dissect_xtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
xtph->seq += tvb_get_ntohl(tvb, offset+4);
#define MAX_OPTIONS_LEN 128
- options=(gchar *)ep_alloc(MAX_OPTIONS_LEN);
+ options=(gchar *)wmem_alloc(wmem_packet_scope(), MAX_OPTIONS_LEN);
options[0]=0;
cmd_options = xtph->cmd_options >> 8;
for (i = 0; i < 16; i++) {