From: Anuj Jain Date: Wed, 15 Mar 2023 06:46:09 +0000 (+0530) Subject: Fix Coverity issue X-Git-Tag: accepted/tizen/unified/20230320.021840^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c059b3b3dd46109aa7014a01a165ca611baed308;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix Coverity issue This patch fixes Coverity issue: CID : 1668452 (RESOURCE_LEAK) Change-Id: Idf35488d83e6f2da939a6b4dbe302cfd26a304e1 Signed-off-by: Anuj Jain --- diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index 0860c19..e0ebc9e 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -1845,6 +1845,7 @@ static int __bt_remove_ad_data_by_type(char **in_data, unsigned int *in_len, cha } } + g_free(data); BT_ERR("ad_type(0x%02x) data is not set", in_type); return BT_ERROR_NONE; }