From 82822e32b3818c6246659d35fb48930f9a2ed526 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Fri, 17 Apr 2009 17:48:10 +0000
Subject: [PATCH] plug another possible slurmd memory leak associated with the
 munge credential handling   (the leak is timing dependent)

---
 src/common/slurm_cred.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/slurm_cred.c b/src/common/slurm_cred.c
index 6d54bb53209..530008d5c2d 100644
--- a/src/common/slurm_cred.c
+++ b/src/common/slurm_cred.c
@@ -495,6 +495,8 @@ slurm_cred_ctx_destroy(slurm_cred_ctx_t ctx)
 	slurm_mutex_lock(&ctx->mutex);
 	xassert(ctx->magic == CRED_CTX_MAGIC);
 
+	if (ctx->exkey)
+		(*(g_crypto_context->ops.crypto_destroy_key))(ctx->exkey);
 	if (ctx->key)
 		(*(g_crypto_context->ops.crypto_destroy_key))(ctx->key);
 	if (ctx->job_list)
-- 
GitLab