Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mxqd: Fix memory leak for host_cpu_set_str
  • Loading branch information
mariux committed Nov 3, 2015
1 parent 2d632f3 commit 1291fc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mxqd.c
Expand Up @@ -1036,6 +1036,7 @@ unsigned long start_job(struct mxq_group_list *glist)
group->user_name, group->user_uid, group->group_id, job->job_id);

cpuset_init_job(&job->host_cpu_set, &server->cpu_set_available, &server->cpu_set_running, glist->slots_per_job);
mx_free_null(job->host_cpu_set_str);
job->host_cpu_set_str = mx_cpuset_to_str(&job->host_cpu_set);

mx_log_info("job assigned cpus: [%s]", job->host_cpu_set_str);
Expand Down

0 comments on commit 1291fc5

Please sign in to comment.