diff --git a/testsuite/expect/test24.1.prog.c b/testsuite/expect/test24.1.prog.c
index feee105fea33db50804de88b8ec725759b2c77dc..ce664852c47a7259661f8be5fb074da29ac9c884 100644
--- a/testsuite/expect/test24.1.prog.c
+++ b/testsuite/expect/test24.1.prog.c
@@ -325,6 +325,7 @@ int main (int argc, char **argv)
 	conf->priority_weight_js = 0;
 	conf->priority_weight_part = 0;
 	conf->priority_weight_qos = 0;
+	xfree(conf->priority_weight_tres);
 	slurm_conf_unlock();
 
 	/* we don't want to do any decay here so make the save state