[UTC][alarm][Non-ACR][Fix memory leak issue]
authorJiwoong Im <jiwoong.im@samsung.com>
Wed, 8 Feb 2017 06:31:33 +0000 (15:31 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Wed, 8 Feb 2017 06:31:33 +0000 (15:31 +0900)
Change-Id: I5aa036911fc39e176807ee4372186c3067998fb5
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
src/utc/alarm/utc_alarm.c

index 9e791ebbc31ef0ba9e2866c77ff8ada5b3fe80a2..5690cca93320720873f94f8648ed99c4b8ca6e87 100755 (executable)
@@ -993,6 +993,7 @@ int utc_alarm_schedule_with_recurrence_week_flag_n3(void)
 
        ret = alarm_schedule_with_recurrence_week_flag(app_control, &date, ALARM_WEEK_FLAG_MONDAY, &tid);
 
+       app_control_destroy(app_control);
        alarm_cancel_all();
 
        assert_eq_with_exit(ret, ALARM_ERROR_NOT_PERMITTED_APP);
@@ -1887,6 +1888,10 @@ int utc_alarm_get_notification_p(void)
                        NOTIFICATION_TEXT_TYPE_TITLE, &text);
        assert_with_exit(!strcmp(text, "test"));
 
+       free(text);
+       notification_free(noti);
+       notification_free(noti_return);
+
        normal_exit(0);
 
        return 0;