From 551bc541cfbc898c66b33cdad28b0624a5cbebbd Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 12 Mar 2018 16:04:48 +0900 Subject: [PATCH] Fix memory leak issue Change-Id: Ic09df091874392da891d5d926dfa2403f7ac0ee1 --- packaging/capi-network-bluetooth.spec | 2 +- src/bluetooth-common.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.34.1