summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-tcap.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2014-06-16 12:30:43 -0700
committerAnders Broman <a.broman58@gmail.com>2014-06-17 00:06:17 +0000
commite047e3a00722ae82bf9263f040668dd1e2b897c2 (patch)
tree0f90fc1a1fcdb522680a4c72896b1654edbd2134 /epan/dissectors/packet-tcap.c
parent6c79a718abaf1187b03b79fc671ffacca0e58526 (diff)
downloadwireshark-e047e3a00722ae82bf9263f040668dd1e2b897c2.tar.gz
Convert tcap dissector to wmem
As far as I can tell these calls were just missed in the first initial pass, they're not in a weird scope. Close review from somebody else please to verify that! Change-Id: Ic3188879124dcb8fdf42e79d200d4f244200aa7b Reviewed-on: https://code.wireshark.org/review/2266 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tcap.c')
-rw-r--r--epan/dissectors/packet-tcap.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/epan/dissectors/packet-tcap.c b/epan/dissectors/packet-tcap.c
index 38d2b0457c..1f770dc171 100644
--- a/epan/dissectors/packet-tcap.c
+++ b/epan/dissectors/packet-tcap.c
@@ -1628,7 +1628,7 @@ append_tcaphash_begincall(struct tcaphash_begincall_t *prev_begincall,
#ifdef MEM_TCAPSRT
p_new_tcaphash_begincall = (struct tcaphash_begincall_t *)g_malloc0(sizeof(struct tcaphash_begincall_t));
#else
- p_new_tcaphash_begincall = se_new0(struct tcaphash_begincall_t);
+ p_new_tcaphash_begincall = wmem_new0(wmem_file_scope(), struct tcaphash_begincall_t);
#endif
p_new_tcaphash_begincall->context=p_tcaphash_context;
p_tcaphash_context->begincall=p_new_tcaphash_begincall;
@@ -1682,7 +1682,7 @@ append_tcaphash_ansicall(struct tcaphash_ansicall_t *prev_ansicall,
#ifdef MEM_TCAPSRT
p_new_tcaphash_ansicall = (struct tcaphash_ansicall_t *)g_malloc0(sizeof(struct tcaphash_ansicall_t));
#else
- p_new_tcaphash_ansicall = se_new0(struct tcaphash_ansicall_t);
+ p_new_tcaphash_ansicall = wmem_new0(wmem_file_scope(), struct tcaphash_ansicall_t);
#endif
p_new_tcaphash_ansicall->context=p_tcaphash_context;
p_tcaphash_context->ansicall=p_new_tcaphash_ansicall;
@@ -1719,7 +1719,7 @@ append_tcaphash_contcall(struct tcaphash_contcall_t *prev_contcall,
#ifdef MEM_TCAPSRT
p_new_tcaphash_contcall = (struct tcaphash_contcall_t *)g_malloc0(sizeof(struct tcaphash_contcall_t));
#else
- p_new_tcaphash_contcall = se_new0(struct tcaphash_contcall_t);
+ p_new_tcaphash_contcall = wmem_new0(wmem_file_scope(), struct tcaphash_contcall_t);
#endif
p_new_tcaphash_contcall->context=p_tcaphash_context;
p_tcaphash_context->contcall=p_new_tcaphash_contcall;
@@ -1749,7 +1749,7 @@ append_tcaphash_endcall(struct tcaphash_endcall_t *prev_endcall,
#ifdef MEM_TCAPSRT
p_new_tcaphash_endcall = (struct tcaphas_endcall_t *)g_malloc0(sizeof(struct tcaphash_endcall_t));
#else
- p_new_tcaphash_endcall = se_new0(struct tcaphash_endcall_t);
+ p_new_tcaphash_endcall = wmem_new0(wmem_file_scope(), struct tcaphash_endcall_t);
#endif
p_new_tcaphash_endcall->context=p_tcaphash_context;
p_tcaphash_context->endcall=p_new_tcaphash_endcall;
@@ -1919,14 +1919,14 @@ new_tcaphash_context(struct tcaphash_context_key_t *p_tcaphash_context_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_context_key = (struct tcaphash_context_key_t *)g_malloc(sizeof(struct tcaphash_context_key_t));
#else
- p_new_tcaphash_context_key = se_new(struct tcaphash_context_key_t);
+ p_new_tcaphash_context_key = wmem_new(wmem_file_scope(), struct tcaphash_context_key_t);
#endif
p_new_tcaphash_context_key->session_id = p_tcaphash_context_key->session_id;
#ifdef MEM_TCAPSRT
p_new_tcaphash_context = (struct tcaphash_context_t *)g_malloc0(sizeof(struct tcaphash_context_t));
#else
- p_new_tcaphash_context = se_new0(struct tcaphash_context_t);
+ p_new_tcaphash_context = wmem_new0(wmem_file_scope(), struct tcaphash_context_t);
#endif
p_new_tcaphash_context->key = p_new_tcaphash_context_key;
p_new_tcaphash_context->session_id = p_tcaphash_context_key->session_id;
@@ -1956,7 +1956,7 @@ new_tcaphash_begin(struct tcaphash_begin_info_key_t *p_tcaphash_begin_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_begin_key = (struct tcaphash_begin_info_key_t *)g_malloc(sizeof(struct tcaphash_begin_info_key_t));
#else
- p_new_tcaphash_begin_key = se_new(struct tcaphash_begin_info_key_t);
+ p_new_tcaphash_begin_key = wmem_new(wmem_file_scope(), struct tcaphash_begin_info_key_t);
#endif
p_new_tcaphash_begin_key->hashKey = p_tcaphash_begin_key->hashKey;
p_new_tcaphash_begin_key->tid = p_tcaphash_begin_key->tid;
@@ -1966,7 +1966,7 @@ new_tcaphash_begin(struct tcaphash_begin_info_key_t *p_tcaphash_begin_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_begincall = (struct tcaphash_begincall_t *)g_malloc0(sizeof(struct tcaphash_begincall_t));
#else
- p_new_tcaphash_begincall = se_new0(struct tcaphash_begincall_t);
+ p_new_tcaphash_begincall = wmem_new0(wmem_file_scope(), struct tcaphash_begincall_t);
#endif
p_new_tcaphash_begincall->beginkey=p_new_tcaphash_begin_key;
p_new_tcaphash_begincall->context=p_tcaphash_context;
@@ -2002,7 +2002,7 @@ new_tcaphash_cont(struct tcaphash_cont_info_key_t *p_tcaphash_cont_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_cont_key = (struct tcaphash_cont_info_key_t *)g_malloc(sizeof(struct tcaphash_cont_info_key_t));
#else
- p_new_tcaphash_cont_key = se_new(struct tcaphash_cont_info_key_t);
+ p_new_tcaphash_cont_key = wmem_new(wmem_file_scope(), struct tcaphash_cont_info_key_t);
#endif
p_new_tcaphash_cont_key->hashKey = p_tcaphash_cont_key->hashKey;
p_new_tcaphash_cont_key->src_tid = p_tcaphash_cont_key->src_tid;
@@ -2013,7 +2013,7 @@ new_tcaphash_cont(struct tcaphash_cont_info_key_t *p_tcaphash_cont_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_contcall = (struct tcaphash_contcall_t *)g_malloc0(sizeof(struct tcaphash_contcall_t));
#else
- p_new_tcaphash_contcall = se_new0(struct tcaphash_contcall_t);
+ p_new_tcaphash_contcall = wmem_new0(wmem_file_scope(), struct tcaphash_contcall_t);
#endif
p_new_tcaphash_contcall->contkey=p_new_tcaphash_cont_key;
p_new_tcaphash_contcall->context=p_tcaphash_context;
@@ -2048,7 +2048,7 @@ new_tcaphash_end(struct tcaphash_end_info_key_t *p_tcaphash_end_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_end_key = (struct tcaphash_end_info_key_t *)g_malloc(sizeof(struct tcaphash_end_info_key_t));
#else
- p_new_tcaphash_end_key = se_new(struct tcaphash_end_info_key_t);
+ p_new_tcaphash_end_key = wmem_new(wmem_file_scope(), struct tcaphash_end_info_key_t);
#endif
p_new_tcaphash_end_key->hashKey = p_tcaphash_end_key->hashKey;
p_new_tcaphash_end_key->tid = p_tcaphash_end_key->tid;
@@ -2058,7 +2058,7 @@ new_tcaphash_end(struct tcaphash_end_info_key_t *p_tcaphash_end_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_endcall = (struct tcaphash_endcall_t *)g_malloc0(sizeof(struct tcaphash_endcall_t));
#else
- p_new_tcaphash_endcall = se_new0(struct tcaphash_endcall_t);
+ p_new_tcaphash_endcall = wmem_new0(wmem_file_scope(), struct tcaphash_endcall_t);
#endif
p_new_tcaphash_endcall->endkey=p_new_tcaphash_end_key;
p_new_tcaphash_endcall->context=p_tcaphash_context;
@@ -2091,7 +2091,7 @@ new_tcaphash_ansi(struct tcaphash_ansi_info_key_t *p_tcaphash_ansi_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_ansi_key = (struct tcaphash_ansi_info_key_t *)g_malloc(sizeof(struct tcaphash_ansi_info_key_t));
#else
- p_new_tcaphash_ansi_key = se_new(struct tcaphash_ansi_info_key_t);
+ p_new_tcaphash_ansi_key = wmem_new(wmem_file_scope(), struct tcaphash_ansi_info_key_t);
#endif
p_new_tcaphash_ansi_key->hashKey = p_tcaphash_ansi_key->hashKey;
p_new_tcaphash_ansi_key->tid = p_tcaphash_ansi_key->tid;
@@ -2101,7 +2101,7 @@ new_tcaphash_ansi(struct tcaphash_ansi_info_key_t *p_tcaphash_ansi_key,
#ifdef MEM_TCAPSRT
p_new_tcaphash_ansicall = (struct tcaphash_ansicall_t *)g_malloc0(sizeof(struct tcaphash_ansicall_t));
#else
- p_new_tcaphash_ansicall = se_new0(struct tcaphash_ansicall_t);
+ p_new_tcaphash_ansicall = wmem_new0(wmem_file_scope(), struct tcaphash_ansicall_t);
#endif
p_new_tcaphash_ansicall->ansikey=p_new_tcaphash_ansi_key;
p_new_tcaphash_ansicall->context=p_tcaphash_context;