From: Anuj Jain Date: Wed, 15 Mar 2023 06:46:09 +0000 (+0530) Subject: Fix Coverity issue X-Git-Tag: accepted/tizen/7.0/unified/20230417.162202^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd4fe4adbababb3fc98c9db1a2344e099c05914e;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 681c5ca..9b5896d 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; }