[UTC][notification][Non-ACR][Fix memory leak]
authorseungha.son <seungha.son@samsung.com>
Thu, 30 Jun 2016 01:19:56 +0000 (10:19 +0900)
committerseungha.son <seungha.son@samsung.com>
Thu, 30 Jun 2016 02:02:23 +0000 (11:02 +0900)
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I79ca6ef49df44bba1d9010de67ba0334c08d53ec

src/utc/notification/utc-notification.c

index 5e766a1..ddcf6c9 100755 (executable)
@@ -108,10 +108,15 @@ void utc_notification_startup(void)
 void utc_notification_cleanup(void)
 {
        notification_h notification = NULL;
-       notification = notification_load_by_tag(TEST_TAG_FOR_NOTI);
+       notification_h notification_ongoing = NULL;
 
+       notification = notification_load_by_tag(TEST_TAG_FOR_NOTI);
        notification_delete(notification);
        notification_free(notification);
+
+       notification_ongoing = notification_load_by_tag(TEST_TAG_FOR_ONGOING);
+       notification_delete(notification_ongoing);
+       notification_free(notification_ongoing);
 }
 
 /**