diff options
Diffstat (limited to 'Src/jobs.c')
-rw-r--r-- | Src/jobs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index 6c673b74a..8e48ed4b8 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -1307,7 +1307,8 @@ clearjobtab(int monitor) if (monitor && oldmaxjob) { int sz = oldmaxjob * sizeof(struct job); - DPUTS(oldjobtab != NULL, "BUG: saving job table twice\n"); + if (oldjobtab) + free(oldjobtab); oldjobtab = (struct job *)zalloc(sz); memcpy(oldjobtab, jobtab, sz); |