Fix memory leak issue 44/172144/1
authorWootak Jung <wootak.jung@samsung.com>
Mon, 12 Mar 2018 07:04:48 +0000 (16:04 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 12 Mar 2018 07:04:48 +0000 (16:04 +0900)
Change-Id: Ic09df091874392da891d5d926dfa2403f7ac0ee1

packaging/capi-network-bluetooth.spec
src/bluetooth-common.c

index a7c2fe9..e1cbb08 100644 (file)
@@ -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
index fbfa192..c5cc8d4 100644 (file)
@@ -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;
                }