projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39461d7
)
dtcm: Coverity 174810
author
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 23:10:58 +0000
(
00:10
+0100)
committer
Peter Howkins
<flibble@users.sf.net>
Wed, 4 Jul 2018 23:10:58 +0000
(
00:10
+0100)
cde/programs/dtcm/dtcm/calendarA.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtcm/dtcm/calendarA.c
b/cde/programs/dtcm/dtcm/calendarA.c
index 88843f3fdbe18bc32b51ddb2cdecfadc0634ee3d..c588ff4cf601c3f4f7176740240dbe3323552126 100644
(file)
--- a/
cde/programs/dtcm/dtcm/calendarA.c
+++ b/
cde/programs/dtcm/dtcm/calendarA.c
@@
-1853,6
+1853,8
@@
reset_timer(Calendar *c) {
_csa_iso8601_to_tick(reminders[0].run_time, &reminder_tick);
c->view->next_alarm_id = XtAppAddTimeOut(c->xcontext->app,
(max(reminder_tick - now(), 1) * 1000), reminder_driver, c);
+ } else {
+ free(reminders);
}
return stat;