Diff between b275ce9cac4acb72fc64c2ad72c040759c682866 and 7a7c5e3032aad9ad3bfa73fef9bf6b883bb73992
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +4 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 45ad1ae..dad9c79 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2984,6 +2984,10 @@ const sdp_record_t *btd_device_get_record(struct btd_device *device,
record = find_record_in_list(device->tmp_records, uuid);
if (record != NULL)
return record;
+
+ sdp_list_free(device->tmp_records,
+ (sdp_free_func_t) sdp_record_free);
+ device->tmp_records = NULL;
}
adapter_get_address(device->adapter, &src);