Fix the memory leak 21/255321/1 accepted/tizen/unified/20210317.115839 submit/tizen/20210316.231924
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 16 Mar 2021 23:42:31 +0000 (08:42 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 16 Mar 2021 23:42:31 +0000 (08:42 +0900)
Change-Id: I95cc117fbc4ac314712f9e1e60e23d5cafd7e4ba
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-oal/bluez_hal/src/bt-hal-gatt-server.c

index 05f20de..776a4d6 100644 (file)
@@ -2803,6 +2803,7 @@ static bt_status_t gatt_server_add_descriptor(int slot, int service_handle, bt_u
        desc_handle = __bt_hal_assign_gatt_handle(BT_GATT_TYPE_DESC);
        if (desc_handle == -1) {
                ERR("Too many gatt desc handles are created");
+               g_free(serv_path);
                return BT_STATUS_FAIL;
        }