diff options
author | Evan Huus <eapache@gmail.com> | 2013-09-12 12:37:27 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-09-12 12:37:27 +0000 |
commit | 58a9f5cb1ef9e40b6948edff08f6d172ae7d1ed1 (patch) | |
tree | d3745e1de53bd4d9402b2ecdfd4ba13da0e46e1c /epan/dissectors/packet-pop.c | |
parent | 343772cbcf9ced336d40a6ad1886c93199ed9775 (diff) |
More wmem.
svn path=/trunk/; revision=51968
Diffstat (limited to 'epan/dissectors/packet-pop.c')
-rw-r--r-- | epan/dissectors/packet-pop.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pop.c b/epan/dissectors/packet-pop.c index 249cc28237..f0b74a4033 100644 --- a/epan/dissectors/packet-pop.c +++ b/epan/dissectors/packet-pop.c @@ -37,6 +37,7 @@ #include <epan/conversation.h> #include <epan/prefs.h> #include <epan/reassemble.h> +#include <epan/wmem/wmem.h> #include "packet-ssl.h" static int proto_pop = -1; @@ -151,7 +152,7 @@ dissect_pop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * No conversation - create one and attach it. */ - data_val = se_new0(struct pop_data_val); + data_val = wmem_new0(wmem_file_scope(), struct pop_data_val); conversation_add_proto_data(conversation, proto_pop, data_val); } @@ -220,7 +221,7 @@ dissect_pop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) data_val->msg_read_len += tvb_length(tvb); - frame_data_p = se_new(struct pop_proto_data); + frame_data_p = wmem_new(wmem_file_scope(), struct pop_proto_data); frame_data_p->conversation_id = conversation->index; frame_data_p->more_frags = data_val->msg_read_len < data_val->msg_tot_len; |