diff --git a/src/rem2ps.c b/src/rem2ps.c index 67c7162a..a32af96f 100644 --- a/src/rem2ps.c +++ b/src/rem2ps.c @@ -469,6 +469,8 @@ void DoPsCal(void) /* If it's an unknown special, ignore */ if (c->special == SPECIAL_UNKNOWN) { DBufFree(&buf); + free(c); + c = NULL; continue; } if (c->daynum != CurDay) {