Fix the crash issue during LE discovery 31/119331/2 accepted/tizen/common/20170316.161945 accepted/tizen/ivi/20170316.222741 accepted/tizen/mobile/20170316.222656 accepted/tizen/tv/20170316.222710 accepted/tizen/unified/20170316.222758 accepted/tizen/wearable/20170316.222725 submit/tizen/20170316.103054
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 16 Mar 2017 10:28:06 +0000 (19:28 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 16 Mar 2017 10:29:38 +0000 (19:29 +0900)
Change-Id: Ifcb0d41a63b50949e62ab5ec5be20d4734851f73
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-common.c

index 56a80f7..42c1b53 100644 (file)
@@ -2961,7 +2961,6 @@ static void __bt_le_event_proxy(int event, bluetooth_event_param_t *param, void
                        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);