Merge "Fix coverty issues in gatt" into tizen submit/tizen/20200214.001348
authorPyun DoHyun <dh79.pyun@samsung.com>
Thu, 13 Feb 2020 23:54:49 +0000 (23:54 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Thu, 13 Feb 2020 23:54:49 +0000 (23:54 +0000)
bt-oal/bluez_hal/src/bt-hal-gatt.c

index 17457a4..e6b6d34 100644 (file)
@@ -788,6 +788,7 @@ static void __bt_hal_handle_gatt_client_scan_result(void *buf, uint16_t len)
        adv_info = g_malloc0(sizeof(bt_hal_le_adv_info_t));
        if (!adv_info) {
                ERR("Not enough memory");
+               g_free(adv_info);
                return;
        }