From: DoHyun Pyun Date: Tue, 16 Mar 2021 23:42:31 +0000 (+0900) Subject: Fix the memory leak X-Git-Tag: accepted/tizen/unified/20210317.115839^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=056495021756aa37041f3e498c79f550d1885a91;hp=ccb8c3de430735373a106930942149e837e27634;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Fix the memory leak Change-Id: I95cc117fbc4ac314712f9e1e60e23d5cafd7e4ba Signed-off-by: DoHyun Pyun --- diff --git a/bt-oal/bluez_hal/src/bt-hal-gatt-server.c b/bt-oal/bluez_hal/src/bt-hal-gatt-server.c index 05f20de..776a4d6 100644 --- a/bt-oal/bluez_hal/src/bt-hal-gatt-server.c +++ b/bt-oal/bluez_hal/src/bt-hal-gatt-server.c @@ -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; }