diff --git a/src/api/node_info.c b/src/api/node_info.c
index d4672f04b615e24259151fe5e761e2f59baf330f..bf25e8e04cb633dc3b30b93cde7f0394a7adb1fe 100644
--- a/src/api/node_info.c
+++ b/src/api/node_info.c
@@ -321,6 +321,7 @@ slurm_sprint_node_table (node_info_t * node_ptr,
 			}
 			tok = strtok_r(NULL, "\n", &save_ptr);
 		}
+		xfree(reason_str);
 	}
 	if (one_liner)
 		xstrcat(out, "\n");