summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-lapd.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-09-15 13:46:13 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-09-15 13:46:13 +0000
commit9486a3d9747ad9426913dd3302e19c5884cc2bff (patch)
treef245f85039bfb7c41c76a68588c9e9ebe383e940 /epan/dissectors/packet-lapd.c
parent888650324b6c2fc7f8c9d29f66d862f25b7e9a9f (diff)
downloadwireshark-9486a3d9747ad9426913dd3302e19c5884cc2bff.tar.gz
More wmem conversion (leaving uat related functions aside)
svn path=/trunk/; revision=52055
Diffstat (limited to 'epan/dissectors/packet-lapd.c')
-rw-r--r--epan/dissectors/packet-lapd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-lapd.c b/epan/dissectors/packet-lapd.c
index f15f4cd908..b9ba012a09 100644
--- a/epan/dissectors/packet-lapd.c
+++ b/epan/dissectors/packet-lapd.c
@@ -48,6 +48,7 @@
#include <epan/prefs.h>
#include <epan/lapd_sapi.h>
#include <epan/expert.h>
+#include <epan/wmem/wmem.h>
static int proto_lapd = -1;
static int hf_lapd_direction = -1;
@@ -363,7 +364,7 @@ dissect_lapd_bitstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
if (NULL == p_get_proto_data(pinfo->fd, proto_lapd, 0)) {
/* Per packet information */
- lapd_ppi = se_new(lapd_ppi_t);
+ lapd_ppi = wmem_new(wmem_file_scope(), lapd_ppi_t);
lapd_ppi->has_crc = TRUE;
if (prev_byte_state)
fill_lapd_byte_state(&lapd_ppi->start_byte_state, prev_byte_state->state,
@@ -383,13 +384,13 @@ dissect_lapd_bitstream(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
fill_lapd_byte_state(convo_data->byte_state_a, state, full_byte, bit_offset, ones, data, data_len);
else {
if (!convo_data->byte_state_b)
- convo_data->byte_state_b = se_new(lapd_byte_state_t);
+ convo_data->byte_state_b = wmem_new(wmem_file_scope(), lapd_byte_state_t);
fill_lapd_byte_state(convo_data->byte_state_b, state, full_byte, bit_offset, ones, data, data_len);
}
} else { /* lapd convo data has to be created */
- lapd_byte_state = se_new(lapd_byte_state_t);
+ lapd_byte_state = wmem_new(wmem_file_scope(), lapd_byte_state_t);
fill_lapd_byte_state(lapd_byte_state, state, full_byte, bit_offset, ones, data, data_len);
- convo_data = se_new(lapd_convo_data_t);
+ convo_data = wmem_new(wmem_file_scope(), lapd_convo_data_t);
COPY_ADDRESS(&convo_data->addr_a, &pinfo->src);
COPY_ADDRESS(&convo_data->addr_b, &pinfo->dst);
convo_data->port_a = pinfo->srcport;