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

Move array from stack to heap

This might possibly be related to bug 2334, but it's a long shot.
parent 79c9a499
No related branches found
No related tags found
No related merge requests found
......@@ -1847,12 +1847,13 @@ _send_pending_exit_msgs(stepd_step_rec_t *job)
int nsent = 0;
int status = 0;
bool set = false;
uint32_t tid[job->node_tasks];
uint32_t *tid;
/*
* Collect all exit codes with the same status into a
* single message.
*/
tid = xmalloc(sizeof(uint32_t) * job->node_tasks);
for (i = 0; i < job->node_tasks; i++) {
stepd_step_task_info_t *t = job->task[i];
......@@ -1873,6 +1874,7 @@ _send_pending_exit_msgs(stepd_step_rec_t *job)
debug2("Aggregated %d task exit messages", nsent);
_send_exit_msg(job, tid, nsent, status);
}
xfree(tid);
return nsent;
}
......
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