[UTC][notification][Non-ACR][Add memory deallocation]
authorseungha.son <seungha.son@samsung.com>
Tue, 31 May 2016 23:40:52 +0000 (08:40 +0900)
committerseungha.son <seungha.son@samsung.com>
Wed, 1 Jun 2016 01:25:37 +0000 (10:25 +0900)
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I52ed2e136a7b6923c3639e114570878f5dae0712

src/utc/notification/utc-notification.c

index 4d99113..872b7d2 100755 (executable)
@@ -142,6 +142,7 @@ int utc_notification_create_2_n(void)
 
        assert(!notification);
 
+       notification_free(notification);
        return 0;
 }
 
@@ -158,6 +159,7 @@ int utc_notification_create_1_p(void)
 
        assert(notification);
 
+       notification_free(notification);
        return 0;
 }
 
@@ -174,6 +176,7 @@ int utc_notification_create_2_p(void)
 
        assert(notification);
 
+       notification_free(notification);
        return 0;
 }
 
@@ -210,6 +213,7 @@ int utc_notification_set_image_1_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
        return 0;
 }
 
@@ -230,6 +234,7 @@ int utc_notification_set_image_2_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_INDICATOR, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
        return 0;
 }
 
@@ -250,6 +255,7 @@ int utc_notification_set_image_3_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_FOR_LOCK, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
        return 0;
 }
 
@@ -270,6 +276,8 @@ int utc_notification_set_image_4_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -290,6 +298,8 @@ int utc_notification_set_image_5_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_THUMBNAIL_FOR_LOCK, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -310,6 +320,8 @@ int utc_notification_set_image_6_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON_SUB, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -330,6 +342,8 @@ int utc_notification_set_image_7_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BACKGROUND, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -350,6 +364,8 @@ int utc_notification_set_image_8_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_1, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -370,6 +386,8 @@ int utc_notification_set_image_9_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_2, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -390,6 +408,8 @@ int utc_notification_set_image_10_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_3, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -410,6 +430,8 @@ int utc_notification_set_image_11_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_ICON, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -430,6 +452,8 @@ int utc_notification_set_image_12_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_LIST_5, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -450,6 +474,8 @@ int utc_notification_set_image_13_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_1, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -470,6 +496,8 @@ int utc_notification_set_image_14_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_2, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -490,6 +518,8 @@ int utc_notification_set_image_15_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_3, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -510,6 +540,8 @@ int utc_notification_set_image_16_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_4, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -530,6 +562,8 @@ int utc_notification_set_image_17_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_5, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -550,6 +584,8 @@ int utc_notification_set_image_18_p(void)
        ret = notification_set_image(notification, NOTIFICATION_IMAGE_TYPE_BUTTON_6, TEST_IMAGE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -589,6 +625,8 @@ int utc_notification_get_image_1_p(void)
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
        assert_eq(strcmp(image, TEST_IMAGE), 0);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -613,6 +651,8 @@ int utc_notification_get_image_2_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -637,6 +677,8 @@ int utc_notification_get_image_3_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -661,6 +703,8 @@ int utc_notification_get_image_4_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -685,6 +729,8 @@ int utc_notification_get_image_5_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -709,6 +755,8 @@ int utc_notification_get_image_6_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -733,6 +781,8 @@ int utc_notification_get_image_7_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -757,6 +807,8 @@ int utc_notification_get_image_8_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -780,6 +832,8 @@ int utc_notification_get_image_9_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -804,6 +858,8 @@ int utc_notification_get_image_10_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -828,6 +884,8 @@ int utc_notification_get_image_11_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -852,6 +910,8 @@ int utc_notification_get_image_12_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -876,6 +936,8 @@ int utc_notification_get_image_13_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -900,6 +962,8 @@ int utc_notification_get_image_14_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -924,6 +988,8 @@ int utc_notification_get_image_15_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -948,6 +1014,8 @@ int utc_notification_get_image_16_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -972,6 +1040,8 @@ int utc_notification_get_image_17_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -996,6 +1066,8 @@ int utc_notification_get_image_18_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1020,6 +1092,8 @@ int utc_notification_get_image_19_p(void)
        assert_neq(image, NULL);
        image = NULL;
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1057,6 +1131,8 @@ int utc_notification_set_time_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1098,6 +1174,8 @@ int utc_notification_get_time_1_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1121,6 +1199,8 @@ int utc_notification_get_time_2_p(void)
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
        assert_eq(t, TEST_TIME);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1160,6 +1240,8 @@ int utc_notification_get_insert_time_1_p(void)
        assert_neq(t, -1);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1183,6 +1265,8 @@ int utc_notification_get_insert_time_2_p(void)
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
        assert_neq(t, 0);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1222,6 +1306,8 @@ int utc_notification_set_text_1_p(void)
                                NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1241,6 +1327,8 @@ int utc_notification_set_text_2_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1259,6 +1347,8 @@ int utc_notification_set_text_3_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1277,6 +1367,8 @@ int utc_notification_set_text_4_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1295,6 +1387,8 @@ int utc_notification_set_text_5_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1313,6 +1407,8 @@ int utc_notification_set_text_6_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1331,6 +1427,8 @@ int utc_notification_set_text_7_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1349,6 +1447,8 @@ int utc_notification_set_text_8_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1367,6 +1467,8 @@ int utc_notification_set_text_9_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1385,6 +1487,8 @@ int utc_notification_set_text_10_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1403,6 +1507,8 @@ int utc_notification_set_text_11_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1421,6 +1527,8 @@ int utc_notification_set_text_12_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1439,6 +1547,8 @@ int utc_notification_set_text_13_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1457,6 +1567,8 @@ int utc_notification_set_text_14_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1475,6 +1587,8 @@ int utc_notification_set_text_15_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1493,6 +1607,8 @@ int utc_notification_set_text_16_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1511,6 +1627,8 @@ int utc_notification_set_text_17_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1530,6 +1648,8 @@ int utc_notification_set_text_18_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1548,6 +1668,8 @@ int utc_notification_set_text_19_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -1566,6 +1688,8 @@ int utc_notification_set_text_20_p(void)
        ret = notification_set_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, TEST_TEXT, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1605,6 +1729,9 @@ int utc_notification_get_text_1_p(void)
        ret = notification_get_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, &value);
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
+
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1628,6 +1755,8 @@ int utc_notification_get_text_2_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1651,6 +1780,8 @@ int utc_notification_get_text_3_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1675,6 +1806,8 @@ int utc_notification_get_text_4_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1698,6 +1831,8 @@ int utc_notification_get_text_5_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1721,6 +1856,8 @@ int utc_notification_get_text_6_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1744,6 +1881,8 @@ int utc_notification_get_text_7_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1767,6 +1906,8 @@ int utc_notification_get_text_8_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1790,6 +1931,8 @@ int utc_notification_get_text_9_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1813,6 +1956,8 @@ int utc_notification_get_text_10_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1836,6 +1981,8 @@ int utc_notification_get_text_11_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1859,6 +2006,8 @@ int utc_notification_get_text_12_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1882,6 +2031,8 @@ int utc_notification_get_text_13_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1905,6 +2056,8 @@ int utc_notification_get_text_14_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1928,6 +2081,8 @@ int utc_notification_get_text_15_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1951,6 +2106,8 @@ int utc_notification_get_text_16_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1974,6 +2131,8 @@ int utc_notification_get_text_17_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -1997,6 +2156,8 @@ int utc_notification_get_text_18_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2033,6 +2194,8 @@ int utc_notification_set_time_to_text_1_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_TITLE, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2052,6 +2215,8 @@ int utc_notification_set_time_to_text_2_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2071,6 +2236,8 @@ int utc_notification_set_time_to_text_3_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2090,6 +2257,8 @@ int utc_notification_set_time_to_text_4_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_EVENT_COUNT, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2109,6 +2278,8 @@ int utc_notification_set_time_to_text_5_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_1, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2128,6 +2299,8 @@ int utc_notification_set_time_to_text_6_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_1, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2147,6 +2320,8 @@ int utc_notification_set_time_to_text_7_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_2, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2166,6 +2341,8 @@ int utc_notification_set_time_to_text_8_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_2, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2185,6 +2362,8 @@ int utc_notification_set_time_to_text_9_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_3, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2204,6 +2383,8 @@ int utc_notification_set_time_to_text_10_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_INFO_SUB_3, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2223,6 +2404,8 @@ int utc_notification_set_time_to_text_11_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_TITLE, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2242,6 +2425,8 @@ int utc_notification_set_time_to_text_12_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2261,6 +2446,8 @@ int utc_notification_set_time_to_text_13_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_GROUP_CONTENT_FOR_DISPLAY_OPTION_IS_OFF, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2280,6 +2467,8 @@ int utc_notification_set_time_to_text_14_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_1, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2299,6 +2488,8 @@ int utc_notification_set_time_to_text_15_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_2, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2318,6 +2509,8 @@ int utc_notification_set_time_to_text_16_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_3, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2337,6 +2530,8 @@ int utc_notification_set_time_to_text_17_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_4, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2356,6 +2551,8 @@ int utc_notification_set_time_to_text_18_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_5, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 /**
@@ -2375,6 +2572,8 @@ int utc_notification_set_time_to_text_19_p(void)
        ret = notification_set_time_to_text(notification, NOTIFICATION_TEXT_TYPE_BUTTON_6, time(NULL));
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2414,6 +2613,8 @@ int utc_notification_get_time_from_text_1_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2436,6 +2637,8 @@ int utc_notification_get_time_from_text_2_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2458,6 +2661,8 @@ int utc_notification_get_time_from_text_3_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2480,6 +2685,8 @@ int utc_notification_get_time_from_text_4_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2502,6 +2709,8 @@ int utc_notification_get_time_from_text_5_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2524,6 +2733,8 @@ int utc_notification_get_time_from_text_6_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2546,6 +2757,8 @@ int utc_notification_get_time_from_text_7_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2568,6 +2781,8 @@ int utc_notification_get_time_from_text_8_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2590,6 +2805,8 @@ int utc_notification_get_time_from_text_9_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2612,6 +2829,8 @@ int utc_notification_get_time_from_text_10_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2634,6 +2853,8 @@ int utc_notification_get_time_from_text_11_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2656,6 +2877,8 @@ int utc_notification_get_time_from_text_12_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2678,6 +2901,8 @@ int utc_notification_get_time_from_text_13_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2700,6 +2925,8 @@ int utc_notification_get_time_from_text_14_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2722,6 +2949,8 @@ int utc_notification_get_time_from_text_15_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2744,6 +2973,8 @@ int utc_notification_get_time_from_text_16_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2766,6 +2997,8 @@ int utc_notification_get_time_from_text_17_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2788,6 +3021,8 @@ int utc_notification_get_time_from_text_18_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2810,6 +3045,8 @@ int utc_notification_get_time_from_text_19_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2833,6 +3070,8 @@ int utc_notification_get_time_from_text_20_p(void)
        assert_neq(t, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2870,6 +3109,8 @@ int utc_notification_set_sound_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2912,6 +3153,8 @@ int utc_notification_get_sound_1_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2937,6 +3180,8 @@ int utc_notification_get_sound_2_p(void)
        assert_eq(strcmp(value, TEST_PATH), 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -2974,6 +3219,8 @@ int utc_notification_set_vibration_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3015,6 +3262,8 @@ int utc_notification_get_vibration_1_p(void)
        assert_neq(value, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3040,6 +3289,8 @@ int utc_notification_get_vibration_2_p(void)
        assert_eq(strcmp(value, TEST_PATH), 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3077,6 +3328,8 @@ int utc_notification_set_led_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3120,6 +3373,8 @@ int utc_notification_get_led_1_p(void)
        assert_neq(value, -1);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3145,6 +3400,8 @@ int utc_notification_get_led_2_p(void)
        assert_eq(value, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3182,6 +3439,8 @@ int utc_notification_set_led_time_period_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3223,6 +3482,8 @@ int utc_notification_get_led_time_period_1_p(void)
        assert_neq(value2, -1);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3248,6 +3509,8 @@ int utc_notification_get_led_time_period_2_p(void)
        assert_eq(value2, TEST_INT);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3287,6 +3550,8 @@ int utc_notification_set_property_1_p(void)
        ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_AUTO_DELETE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3307,6 +3572,8 @@ int utc_notification_set_property_2_p(void)
        ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3327,6 +3594,8 @@ int utc_notification_set_property_3_p(void)
        ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_AUTO_DELETE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3347,6 +3616,8 @@ int utc_notification_set_property_4_p(void)
        ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_UPDATE_ON_INSERT);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3367,6 +3638,8 @@ int utc_notification_set_property_5_p(void)
        ret = notification_set_property(notification, NOTIFICATION_PROP_DISABLE_UPDATE_ON_DELETE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3387,6 +3660,8 @@ int utc_notification_set_property_6_p(void)
        ret = notification_set_property(notification, NOTIFICATION_PROP_VOLATILE_DISPLAY);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3426,6 +3701,8 @@ int utc_notification_get_property_1_p(void)
        assert_neq(value, -1);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3449,6 +3726,8 @@ int utc_notification_get_property_2_p(void)
        assert_eq(value, NOTIFICATION_PROP_DISABLE_AUTO_DELETE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3486,6 +3765,8 @@ int utc_notification_set_display_applist_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3527,6 +3808,8 @@ int utc_notification_get_display_applist_1_p(void)
        assert_neq(value, 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3550,6 +3833,8 @@ int utc_notification_get_display_applist_2_p(void)
        assert_eq(value, NOTIFICATION_DISPLAY_APP_ALL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3587,6 +3872,8 @@ int utc_notification_set_size_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3625,6 +3912,8 @@ int utc_notification_get_size_1_p(void)
        assert_neq(value, -1.0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3648,6 +3937,8 @@ int utc_notification_get_size_2_p(void)
        assert_eq(value, TEST_DOUBLE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3684,6 +3975,8 @@ int utc_notification_set_progress_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3723,6 +4016,8 @@ int utc_notification_get_progress_1_p(void)
        assert_neq(value, -1.0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3746,6 +4041,8 @@ int utc_notification_get_progress_2_p(void)
        assert_eq(value, TEST_DOUBLE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3784,6 +4081,8 @@ int utc_notification_set_layout_1_p(void)
        ret = notification_set_layout(notification, NOTIFICATION_LY_NOTI_EVENT_SINGLE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3804,6 +4103,8 @@ int utc_notification_set_layout_2_p(void)
        ret = notification_set_layout(notification, NOTIFICATION_LY_NOTI_EVENT_MULTIPLE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3824,6 +4125,8 @@ int utc_notification_set_layout_3_p(void)
        ret = notification_set_layout(notification, NOTIFICATION_LY_NOTI_THUMBNAIL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3844,6 +4147,8 @@ int utc_notification_set_layout_4_p(void)
        ret = notification_set_layout(notification, NOTIFICATION_LY_ONGOING_EVENT);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3864,6 +4169,8 @@ int utc_notification_set_layout_5_p(void)
        ret = notification_set_layout(notification, NOTIFICATION_LY_ONGOING_PROGRESS);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3904,6 +4211,8 @@ int utc_notification_get_layout_1_p(void)
        assert_eq(type, NOTIFICATION_LY_NOTI_EVENT_SINGLE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3927,6 +4236,8 @@ int utc_notification_get_layout_2_p(void)
        assert_eq(type, NOTIFICATION_LY_NOTI_EVENT_SINGLE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3967,6 +4278,8 @@ int utc_notification_get_type_1_p(void)
        assert_neq(type, NOTIFICATION_TYPE_NONE);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -3990,6 +4303,8 @@ int utc_notification_get_type_2_p(void)
        assert_eq(type, NOTIFICATION_TYPE_NOTI);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4029,6 +4344,8 @@ int utc_notification_update_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4068,6 +4385,8 @@ int utc_notification_delete_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4235,6 +4554,8 @@ int utc_notification_set_tag_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4278,6 +4599,8 @@ int utc_notification_get_tag_1_p(void)
        assert_neq(tag, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4301,6 +4624,8 @@ int utc_notification_get_tag_2_p(void)
        assert_eq(strcmp(tag, TEST_TAG_FOR_NOTI), 0);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4349,6 +4674,8 @@ int utc_notification_load_by_tag_p(void)
 
        assert(notification);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4402,6 +4729,8 @@ int utc_notification_post_n(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_INVALID_PARAMETER);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4425,6 +4754,8 @@ int utc_notification_post_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4468,6 +4799,8 @@ int utc_notification_set_launch_option_p(void)
 
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }
 
@@ -4556,6 +4889,8 @@ int utc_notification_get_pkgname_p(void)
        assert_neq(tag, NULL);
        assert_eq(ret, NOTIFICATION_ERROR_NONE);
 
+       notification_free(notification);
+
        return 0;
 }