aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/t38
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-02-27 14:42:57 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2018-02-28 15:55:05 +0000
commit7eff18a997a81935f22833b69af730f786865204 (patch)
treeb67a92446b240cd64416df29c9ac39fb4449e923 /epan/dissectors/asn1/t38
parent07bb8fc04794a1d8e76bb1bee3401122d054b32d (diff)
t38: allocate memory in pinfo pool scope.
Change-Id: I627f21f2f67589374749f4f16f5d71cf45d98d68 Reviewed-on: https://code.wireshark.org/review/26137 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/asn1/t38')
-rw-r--r--epan/dissectors/asn1/t38/packet-t38-template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/asn1/t38/packet-t38-template.c b/epan/dissectors/asn1/t38/packet-t38-template.c
index c19a6027cd..54fe8ac669 100644
--- a/epan/dissectors/asn1/t38/packet-t38-template.c
+++ b/epan/dissectors/asn1/t38/packet-t38-template.c
@@ -319,7 +319,7 @@ force_reassemble_seq(reassembly_table *table, packet_info *pinfo, guint32 id)
last_fd=fd_i;
}
- data = (guint8 *) g_malloc(size);
+ data = (guint8 *) wmem_alloc(pinfo->pool, size);
fd_head->tvb_data = tvb_new_real_data(data, size, size);
fd_head->len = size; /* record size for caller */