aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-02-12 17:14:12 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2015-02-12 16:27:24 +0000
commit678a9b6463b3661660da2e8a99781332c23cf78c (patch)
treeb9d404bf2c813f5a54a7e3b16b0a83b6b29b4f1f /epan
parentef21740e25f6e9c759852844fec8507e8c80f4dd (diff)
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 <pascal.quantin@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-btatt.c2
1 files changed, 1 insertions, 1 deletions
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;