Bugzilla – Bug 189
Dangling pointer in job_func.c
Last modified: 2012-04-30 06:49:41 MDT
You need to log in before you can comment on or make changes to this bug.
In job_func.c, there are two places where job_purge is called, like so: job_purge(pjob); *pjobp = NULL; where pjob = *pjobp. However, this pattern leaves pjob pointer at a dead structure, and mean that later NULL tests on job are incorrect. Simply doing this: job_purge(pjob); *pjobp = NULL; pjob = NULL; resolves the problem.