Fix Coverity issues in Bluetooth-frwk
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / oal-gatt.c
index 38637ad..081f4cf 100644 (file)
@@ -662,6 +662,7 @@ static void cb_gatts_listen(int status, int server_if)
                cur_adv_state[event->server_inst - 1] = new_state;
        } else {
                BT_ERR("Invalid Callback...");
+               g_free(event);
                return;
        }