Fix the svace issue (WGID: 168473) 23/113623/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 8 Feb 2017 05:10:37 +0000 (14:10 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 8 Feb 2017 08:00:11 +0000 (17:00 +0900)
This patchset prevents the memory leak in the gatt operation.

Change-Id: I94b0c6b1cd9fa8eebdaf7d7155a4d4a32f4aaf61
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/gatt-database.c

index c734edb..adb4b15 100644 (file)
@@ -1177,6 +1177,7 @@ static void send_notification_indication_to_device(void *data, void *user_data)
                /* In case of Notification, send response to application
                 * as remote device do not respond for notification */
                conf_cb(confirm);
+               indicate_confirm_free((void *)confirm);
                return;
        }