Revert "Fix svace issues" 57/251357/1
authorWootak Jung <wootak.jung@samsung.com>
Wed, 13 Jan 2021 03:48:28 +0000 (12:48 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Wed, 13 Jan 2021 03:51:38 +0000 (12:51 +0900)
This reverts commit e4ce93a114e464d34a1b59cba44848ecc54ae4da.

Change-Id: I4456ccd2a34e343cd543bb57a15cf4c4c49a6375
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
bt-api/bt-gatt-client.c

index cde30261a2033c1e7b08c018ed56da64af6bc0d7..b51dbc5e40ce4b391dac6488ffd69f1a21e0e60b 100644 (file)
@@ -48,22 +48,9 @@ static GSList *service_monitor_list = NULL;
 
 BT_EXPORT_API int bluetooth_gatt_free_service_property(bt_gatt_service_property_t *svc_pty)
 {
-       int i;
-
        BT_CHECK_PARAMETER(svc_pty, return);
 
        g_free(svc_pty->uuid);
-       g_free(svc_pty->handle);
-       if (svc_pty->include_handles.count > 0) {
-               for (i = 0; i < svc_pty->include_handles.count; i++)
-                       g_free(svc_pty->include_handles.handle[i]);
-               g_free(svc_pty->include_handles.handle);
-       }
-       if (svc_pty->char_handle.count > 0) {
-               for (i = 0; i < svc_pty->char_handle.count; i++)
-                       g_free(svc_pty->char_handle.handle[i]);
-               g_free(svc_pty->char_handle.handle);
-       }
 
        memset(svc_pty, 0, sizeof(bt_gatt_service_property_t));