From e0c17c2fe03280ded77f6f8c84274eb74ca63949 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 2 Jun 2010 16:33:50 +0000
Subject: [PATCH] fix memory leak in slurmctld for bluegene systems

---
 src/slurmctld/job_scheduler.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/slurmctld/job_scheduler.c b/src/slurmctld/job_scheduler.c
index c795353a4f3..ca56a160507 100644
--- a/src/slurmctld/job_scheduler.c
+++ b/src/slurmctld/job_scheduler.c
@@ -1237,6 +1237,7 @@ static char **_build_env(struct job_record *job_ptr)
 	select_g_select_jobinfo_get(job_ptr->select_jobinfo,
 			     SELECT_JOBDATA_BLOCK_ID, &name);
 	setenvf(&my_env, "MPIRUN_PARTITION", "%s", name);
+	xfree(name);
 #endif
 	setenvf(&my_env, "SLURM_JOB_ACCOUNT", "%s", job_ptr->account);
 	if (job_ptr->details) {
-- 
GitLab