From: Sudipto Date: Thu, 13 Feb 2020 13:13:42 +0000 (+0530) Subject: Fix coverty issues in gatt X-Git-Tag: submit/tizen/20200214.001348^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f1036a0754d809d200a427f43cf6707e0d8a16b;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Fix coverty issues in gatt Change-Id: If60ddc47a87c93883d79be1e4e73080f923c70ca Signed-off-by: Sudipto --- diff --git a/bt-oal/bluez_hal/src/bt-hal-gatt.c b/bt-oal/bluez_hal/src/bt-hal-gatt.c index a476088..15fed96 100644 --- a/bt-oal/bluez_hal/src/bt-hal-gatt.c +++ b/bt-oal/bluez_hal/src/bt-hal-gatt.c @@ -788,6 +788,7 @@ static void __bt_hal_handle_gatt_client_scan_result(void *buf, uint16_t len) adv_info = g_malloc0(sizeof(bt_hal_le_adv_info_t)); if (!adv_info) { ERR("Not enough memory"); + g_free(adv_info); return; }