Fix coverty issues in gatt 64/224864/1
authorSudipto <sudipto.bal@samsung.com>
Thu, 13 Feb 2020 13:13:42 +0000 (18:43 +0530)
committerSudipto <sudipto.bal@samsung.com>
Thu, 13 Feb 2020 13:13:42 +0000 (18:43 +0530)
Change-Id: If60ddc47a87c93883d79be1e4e73080f923c70ca
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt.c

index a476088..15fed96 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;
        }