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 a7c2fe9c7eb6a9f41a10e30a04a62d3eaa09f627..e1cbb08edf9d1139f6cba9c8bc787d6dc57ba605 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 fbfa19215ca25c15520b7231f75c717cd95f64a4..c5cc8d467b3e041e24cfc40c42382926d48fad16 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;
                }