Change-Id: Ifcb0d41a63b50949e62ab5ec5be20d4734851f73
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
if (__bt_get_bt_adapter_le_device_scan_info_s(&scan_info, (bluetooth_le_device_info_t *)(param->param_data)) == BT_ERROR_NONE) {
((bt_adapter_le_scan_result_cb)bt_event_slot_container[event_index].callback)
(_bt_get_error_code(param->result), scan_info, bt_event_slot_container[event_index].user_data);
- __bt_free_bt_adapter_le_device_scan_info_s(scan_info);
} else {
((bt_adapter_le_scan_result_cb)bt_event_slot_container[event_index].callback)
(_bt_get_error_code(param->result), NULL, bt_event_slot_container[event_index].user_data);