diff --git a/NEWS b/NEWS
index d7c238a3d23cac6101243cf5029bb7f0802e3e08..5fd2e7682bbe2ba6b5e73ca6ee2b968db0bfc513 100644
--- a/NEWS
+++ b/NEWS
@@ -262,6 +262,7 @@ documents those changes that are of interest to users and admins.
  -- BGQ - Fix minor memory leak when selecting blocks that can't immediately be
     placed.
  -- Fixed minor memory leak in backfill scheduler.
+ -- MYSQL - Fixed memory leak when querying clusters.
 
 * Changes in Slurm 2.6.6
 ========================
diff --git a/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c b/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c
index 5c081d2775d19f307eeaa479dfb017807ff38d6f..4be9a5b59f082e64b9545d8d9dcce7754051856d 100644
--- a/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c
+++ b/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c
@@ -916,8 +916,10 @@ extern List setup_cluster_list_with_inx(mysql_conn_t *mysql_conn,
 	if (!(row = mysql_fetch_row(result))) {
 		error("Couldn't get the dimensions of cluster '%s'.",
 		      (char *)list_peek(job_cond->cluster_list));
+		mysql_free_result(result);
 		return NULL;
 	}
+	mysql_free_result(result);
 
 	/* On a Cray System when dealing with hostlists as we are here
 	   this always needs to be 1.