From 1d17e22d9cac63bc5dc65ad87c636d932fa932e9 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Wed, 2 Oct 2013 17:07:48 -0700
Subject: [PATCH] Fix for slurmd memory leak at shutdown

---
 src/common/slurm_acct_gather_profile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/slurm_acct_gather_profile.c b/src/common/slurm_acct_gather_profile.c
index 952a7ff86e9..cc24d6ff81a 100644
--- a/src/common/slurm_acct_gather_profile.c
+++ b/src/common/slurm_acct_gather_profile.c
@@ -199,7 +199,7 @@ extern int acct_gather_profile_fini(void)
 
 	slurm_mutex_lock(&g_context_lock);
 
-	if (g_context)
+	if (!g_context)
 		goto done;
 
 	init_run = false;
-- 
GitLab