diff options
-rw-r--r-- | Src/jobs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Src/jobs.c b/Src/jobs.c index 81a0e2e8f..e2450cdc1 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -548,8 +548,11 @@ should_report_time(Job j) if (j->stat & STAT_TIMED) return 1; - if (!(v = getvalue(&s, 0)) || (reporttime = getintvalue(v)) < 0) - return 0; + HEAPALLOC { + if (!(v = getvalue(&s, 0)) || (reporttime = getintvalue(v)) < 0) { + LASTALLOC_RETURN 0; + } + } LASTALLOC; /* can this ever happen? */ if (!j->procs) |