Skip to content
Snippets Groups Projects
Commit daa1ccf9 authored by Morris Jette's avatar Morris Jette
Browse files

step record purge fix

This corrects logic introduced yesterday in commit
6f89dc9d which introduced a double
free of step records, at least on job requeue.
bug 1012
parent 00d66a2a
No related branches found
No related tags found
No related merge requests found
...@@ -252,11 +252,12 @@ extern void delete_step_records (struct job_record *job_ptr) ...@@ -252,11 +252,12 @@ extern void delete_step_records (struct job_record *job_ptr)
&cleaning); &cleaning);
if (cleaning) /* Step already in cleanup. */ if (cleaning) /* Step already in cleanup. */
continue; continue;
/* _internal_step_complete() will purge step record */
_internal_step_complete(job_ptr, step_ptr); _internal_step_complete(job_ptr, step_ptr);
} else {
list_remove (step_iterator);
_free_step_rec(step_ptr);
} }
list_remove (step_iterator);
_free_step_rec(step_ptr);
} }
list_iterator_destroy(step_iterator); list_iterator_destroy(step_iterator);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment