diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-07-20 23:54:35 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-07-22 06:21:54 +0000 |
commit | 53de2c23783788d92dc17d3dccfdc8b65ab0bf74 (patch) | |
tree | 2395270e27575e7261eda4bc9118daed12b69f90 /epan/dissectors/packet-tdmop.c | |
parent | b2e4a7e21ce7ee8fee857ee71d51ad1ec13feb2e (diff) |
Convert more glib memory to wmem pinfo pool
Change-Id: I4cc23bc19a6bd8c6a8e0389eaf939dbb60fe0ca3
Reviewed-on: https://code.wireshark.org/review/16562
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-tdmop.c')
-rw-r--r-- | epan/dissectors/packet-tdmop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tdmop.c b/epan/dissectors/packet-tdmop.c index 4204c3c14b..6bc470bfd5 100644 --- a/epan/dissectors/packet-tdmop.c +++ b/epan/dissectors/packet-tdmop.c @@ -191,10 +191,9 @@ static int dissect_tdmop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo } if (dchannel_len>0) { - guint8 *buff = (guint8 *)g_memdup(dchannel_data, dchannel_len); + guint8 *buff = (guint8 *)wmem_memdup(pinfo->pool, dchannel_data, dchannel_len); tvbuff_t *new_tvb; new_tvb = tvb_new_child_real_data(tvb, buff, dchannel_len, dchannel_len); - tvb_set_free_cb(new_tvb, g_free); call_dissector(lapd_handle, new_tvb, pinfo, tree); } } |