diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-24 03:29:14 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-24 03:29:14 +0000 |
commit | 7151a4d99e615664158543d7caf8cadf7f82f069 (patch) | |
tree | 5e0b8c76b7f2293056a00516d1bdeb324ed65409 /epan/tpg.c | |
parent | 0ea5c80e1accdd471f86368d933e3776f00d0262 (diff) |
Replace all(?) remaining ep_stack occurences with wmem stacks.
svn path=/trunk/; revision=54435
Diffstat (limited to 'epan/tpg.c')
-rw-r--r-- | epan/tpg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/tpg.c b/epan/tpg.c index 4c6f26858a..aad97e5f19 100644 --- a/epan/tpg.c +++ b/epan/tpg.c @@ -28,7 +28,7 @@ #include "config.h" #include "tpg.h" -#include <epan/emem.h> +#include <epan/wmem/wmem.h> #include <epan/packet.h> extern guint32 tpg_ipv4(tvbparse_elem_t* e _U_) { @@ -47,13 +47,13 @@ extern tpg_parser_data_t* tpg_start(proto_tree* root_tree, int len, tvbparse_wanted_t* ignore, void* private_data) { - tpg_parser_data_t* tpg = ep_alloc(sizeof(tpg_parser_data_t)); + tpg_parser_data_t* tpg = wmem_new(wmem_packet_scope(), tpg_parser_data_t); tpg->private_data = private_data; tpg->tt = tvbparse_init(tvb,offset,len,tpg,ignore); - tpg->stack = ep_stack_new(); - ep_stack_push(tpg->stack,root_tree); - + tpg->stack = wmem_stack_new(wmem_packet_scope()); + wmem_stack_push(tpg->stack, root_tree); + return tpg; } |