aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtp.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-09-15 10:29:49 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-09-15 10:29:49 +0000
commit868b345eeaf9a7237d3609451ee715cf8ea43ec7 (patch)
treef4b28bb9296e48e09f1c68af867d4cbe20cd69e7 /epan/dissectors/packet-gtp.c
parent07c29e74e9ca2ef0003069b212b3c1ac382abf5a (diff)
Convert a few more dissectors to wmem API
svn path=/trunk/; revision=52053
Diffstat (limited to 'epan/dissectors/packet-gtp.c')
-rw-r--r--epan/dissectors/packet-gtp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gtp.c b/epan/dissectors/packet-gtp.c
index f0d0da9d82..076bbcdc57 100644
--- a/epan/dissectors/packet-gtp.c
+++ b/epan/dissectors/packet-gtp.c
@@ -56,6 +56,7 @@
#include <epan/conversation.h>
#include <epan/packet.h>
+#include <epan/wmem/wmem.h>
#include <epan/prefs.h>
#include <epan/expert.h>
#include <epan/sminmpec.h>
@@ -3091,7 +3092,7 @@ gtp_match_response(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, gint
}
/* if we cant reuse the old one, grab a new chunk */
if (!gcrp) {
- gcrp = se_new(gtp_msg_hash_t);
+ gcrp = wmem_new(wmem_file_scope(), gtp_msg_hash_t);
}
gcrp->seq_nr=seq_nr;
gcrp->req_frame = pinfo->fd->num;
@@ -7860,7 +7861,7 @@ dissect_gtp_common(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
/* Setting everything to 0, so that the TEID is 0 for GTP version 0
* The magic number should perhaps be replaced.
*/
- gtp_hdr = ep_new0(gtp_hdr_t);
+ gtp_hdr = wmem_new0(wmem_packet_scope(), gtp_hdr_t);
/* Setting the TEID to -1 to say that the TEID is not valid for this packet */
gtp_hdr->teid = -1;