This patch fixes SVACE issue: 253879
Change-Id: If38f48cf36ac5c01df7a6d6e3a57c6ac6eec5baa
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
return BT_ERROR_OUT_OF_MEMORY;
(**scan_info).legacy_scan_result = (bt_adapter_le_device_scan_result_info_s *)malloc(sizeof(bt_adapter_le_device_scan_result_info_s));
+ if ((**scan_info).legacy_scan_result == NULL)
+ return BT_ERROR_OUT_OF_MEMORY;
_bt_convert_address_to_string(&((*scan_info)->legacy_scan_result->remote_address), &(source_info->device_address));
if (source_info->addr_type == 0x02)