Skip to content
Snippets Groups Projects
Commit 486e0233 authored by David Bigagli's avatar David Bigagli
Browse files

Bug#284 Fix invalid memory read.

parent 68f0f5db
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,9 @@ static void _partial_free_dbd_job_start(void *object) ...@@ -130,6 +130,9 @@ static void _partial_free_dbd_job_start(void *object)
xfree(req->partition); xfree(req->partition);
xfree(req->node_inx); xfree(req->node_inx);
xfree(req->wckey); xfree(req->wckey);
xfree(req->gres_alloc);
xfree(req->gres_req);
xfree(req->gres_used);
} }
} }
...@@ -199,9 +202,9 @@ static int _setup_job_start_msg(dbd_job_start_msg_t *req, ...@@ -199,9 +202,9 @@ static int _setup_job_start_msg(dbd_job_start_msg_t *req,
req->wckey = xstrdup(job_ptr->wckey); req->wckey = xstrdup(job_ptr->wckey);
req->uid = job_ptr->user_id; req->uid = job_ptr->user_id;
req->qos_id = job_ptr->qos_id; req->qos_id = job_ptr->qos_id;
req->gres_alloc = job_ptr->gres_alloc; req->gres_alloc = xstrdup(job_ptr->gres_alloc);
req->gres_req = job_ptr->gres_req; req->gres_req = xstrdup(job_ptr->gres_req);
req->gres_used = job_ptr->gres_used; req->gres_used = xstrdup(job_ptr->gres_used);
return SLURM_SUCCESS; return SLURM_SUCCESS;
} }
......
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