From: Wootak Jung Date: Mon, 12 Mar 2018 07:04:48 +0000 (+0900) Subject: Fix memory leak issue X-Git-Tag: submit/tizen/20180314.004906~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=551bc541cfbc898c66b33cdad28b0624a5cbebbd;p=platform%2Fcore%2Fapi%2Fbluetooth.git Fix memory leak issue Change-Id: Ic09df091874392da891d5d926dfa2403f7ac0ee1 --- diff --git a/packaging/capi-network-bluetooth.spec b/packaging/capi-network-bluetooth.spec index a7c2fe9..e1cbb08 100644 --- a/packaging/capi-network-bluetooth.spec +++ b/packaging/capi-network-bluetooth.spec @@ -1,6 +1,6 @@ Name: capi-network-bluetooth Summary: Network Bluetooth Framework -Version: 0.5.1 +Version: 0.5.2 Release: 1 Group: Connectivity/API License: Apache-2.0 diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index fbfa192..c5cc8d4 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -2262,6 +2262,9 @@ static void __bt_event_proxy(int event, bluetooth_event_param_t *param, void *us BT_INFO("GATT Server: Internal response sent for Write Request"); } + /* Free Data */ + if (val != NULL) + g_free(val); return; }