From 678a9b6463b3661660da2e8a99781332c23cf78c Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Thu, 12 Feb 2015 17:14:12 +0100 Subject: BT ATT: memory given to add_new_data_source() must be allocated in pinfo scope Bug: 10952 Change-Id: I0eb8e6891c35c70c9d405db87824c442caaa2f30 Reviewed-on: https://code.wireshark.org/review/7085 Reviewed-by: Pascal Quantin --- epan/dissectors/packet-btatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan') diff --git a/epan/dissectors/packet-btatt.c b/epan/dissectors/packet-btatt.c index 390de6b6a0..06667ef225 100644 --- a/epan/dissectors/packet-btatt.c +++ b/epan/dissectors/packet-btatt.c @@ -2889,7 +2889,7 @@ get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, last_offset = fragment_data->offset; if (first) { size = fragment_data->offset + fragment_data->length; - data = (guint8 *) wmem_alloc(wmem_packet_scope(), size); + data = (guint8 *) wmem_alloc(pinfo->pool, size); if (length) *length = size; -- cgit v1.2.3