diff options
author | Evan Huus <eapache@gmail.com> | 2013-01-25 00:28:48 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-01-25 00:28:48 +0000 |
commit | 471dde4a2192c3fbd7deba83ca2f19cf2f0d12f3 (patch) | |
tree | 6096b26d63ec2df06ee116271c593bda722a7f38 /epan/dissectors/packet-mtp3.c | |
parent | d334115b4da20013a7d895cbe8aa6592ba9ba289 (diff) | |
download | wireshark-471dde4a2192c3fbd7deba83ca2f19cf2f0d12f3.tar.gz |
Use pinfo-scoped memory for mtp3 addresses.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8247
svn path=/trunk/; revision=47266
Diffstat (limited to 'epan/dissectors/packet-mtp3.c')
-rw-r--r-- | epan/dissectors/packet-mtp3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mtp3.c b/epan/dissectors/packet-mtp3.c index e7a9d7646e..c902f2a649 100644 --- a/epan/dissectors/packet-mtp3.c +++ b/epan/dissectors/packet-mtp3.c @@ -46,6 +46,7 @@ #include <epan/tap.h> #include <epan/prefs.h> #include <epan/emem.h> +#include <epan/wmem/wmem.h> #include "packet-q708.h" #include "packet-sccp.h" #include "packet-frame.h" @@ -752,8 +753,8 @@ dissect_mtp3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) mtp3_tree = proto_item_add_subtree(mtp3_item, ett_mtp3); } - mtp3_addr_opc = ep_alloc0(sizeof(mtp3_addr_pc_t)); - mtp3_addr_dpc = ep_alloc0(sizeof(mtp3_addr_pc_t)); + mtp3_addr_opc = wmem_alloc0(pinfo->pool, sizeof(mtp3_addr_pc_t)); + mtp3_addr_dpc = wmem_alloc0(pinfo->pool, sizeof(mtp3_addr_pc_t)); /* Dissect the packet (even if !tree so can call sub-dissectors and update * the source and destination address columns) */ |