Avoid memory leak.

This commit is contained in:
Dianne Skoll
2020-01-28 09:43:42 -05:00
parent 6abca08189
commit 5ef0341537

View File

@@ -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) {