[Call UI] Fix SVASE issue 98864 73/74473/1
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Tue, 14 Jun 2016 09:40:59 +0000 (12:40 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Tue, 14 Jun 2016 09:40:59 +0000 (12:40 +0300)
Change-Id: I58a3089726c4f98c6dce7ae364a3099c45cfba15

src/callui-common.c

index 27970c8..1849d19 100755 (executable)
@@ -776,6 +776,9 @@ struct tm *_callui_common_get_current_time_diff_in_tm(long time)
        struct sysinfo info;
        if (sysinfo(&info) == 0) {
                curr_time = info.uptime;
+       } else {
+               free(time_tm);
+               return NULL;
        }
 
        long call_time = curr_time - time;