From 85b77b323690c8cf31c262b6a10d34d3369b8962 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Tue, 11 Feb 2014 13:46:59 -0800
Subject: [PATCH] job_submit/throttle - Free memory at shutdown

---
 src/plugins/job_submit/throttle/job_submit_throttle.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/plugins/job_submit/throttle/job_submit_throttle.c b/src/plugins/job_submit/throttle/job_submit_throttle.c
index 6a4743fd7c2..4f535bcada7 100644
--- a/src/plugins/job_submit/throttle/job_submit_throttle.c
+++ b/src/plugins/job_submit/throttle/job_submit_throttle.c
@@ -159,6 +159,17 @@ static void _reset_counters(void)
 	}
 }
 
+extern int init(void)
+{
+	return SLURM_SUCCESS;
+}
+
+extern int fini(void)
+{
+	xfree(thru_put_array);
+	return SLURM_SUCCESS;
+}
+
 extern int job_submit(struct job_descriptor *job_desc, uint32_t submit_uid,
 		      char **err_msg)
 {
-- 
GitLab