diff options
Diffstat (limited to 'src/basic/calendarspec.c')
-rw-r--r-- | src/basic/calendarspec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basic/calendarspec.c b/src/basic/calendarspec.c index 514587d237..adf79eb533 100644 --- a/src/basic/calendarspec.c +++ b/src/basic/calendarspec.c @@ -688,8 +688,11 @@ static int parse_date(const char **p, CalendarSpec *c) { c->month = first; c->day = second; return 0; - } else if (c->end_of_month) + } else if (c->end_of_month) { + free_chain(first); + free_chain(second); return -EINVAL; + } if (*t == '~') c->end_of_month = true; |