From f11bc4f608fbe4129b2220b29fb78b90b5e22234 Mon Sep 17 00:00:00 2001 From: David Bigagli <david@schedmd.com> Date: Fri, 23 Oct 2015 17:38:41 +0200 Subject: [PATCH] Fix minor leaks in API. --- NEWS | 1 + src/common/slurm_protocol_defs.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 0e972d6ec41..46f927508dc 100644 --- a/NEWS +++ b/NEWS @@ -79,6 +79,7 @@ documents those changes that are of interest to users and administrators. -- MYSQL - Make sure suspended time is only subtracted from the CPU TRES as it is the only TRES that can be given to another job while suspended. -- Clarify how TRESBillingWeights operates on memory and burst buffers. + -- Fix some minor leaks in the job info and step info API. * Changes in Slurm 15.08.1 ========================== diff --git a/src/common/slurm_protocol_defs.c b/src/common/slurm_protocol_defs.c index 73f3fb2777d..e32d7e3c3b8 100644 --- a/src/common/slurm_protocol_defs.c +++ b/src/common/slurm_protocol_defs.c @@ -675,6 +675,7 @@ extern void slurm_free_job_info_members(job_info_t * job) xfree(job->array_task_str); xfree(job->batch_host); xfree(job->batch_script); + xfree(job->burst_buffer); xfree(job->command); xfree(job->comment); xfree(job->dependency); @@ -2880,6 +2881,7 @@ extern void slurm_free_job_step_info_members (job_step_info_t * msg) { if (msg != NULL) { xfree(msg->ckpt_dir); + xfree(msg->gres); xfree(msg->name); xfree(msg->network); xfree(msg->nodes); -- GitLab