diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c
index 3f875f0bc830917713f65f443c7a67b4aefba9d2..bf0ee5f18cf40ecd779889a5fddb6bc5617a9ada 100644
--- a/src/slurmctld/job_mgr.c
+++ b/src/slurmctld/job_mgr.c
@@ -5711,8 +5711,7 @@ static void _list_delete_job(void *job_entry)
 	xfree(job_ptr->gres_used);
 	FREE_NULL_LIST(job_ptr->gres_list);
 	xfree(job_ptr->licenses);
-	if (job_ptr->license_list)
-		list_destroy(job_ptr->license_list);
+	FREE_NULL_LIST(job_ptr->license_list);
 	xfree(job_ptr->mail_user);
 	xfree(job_ptr->name);
 	xfree(job_ptr->network);
diff --git a/src/slurmctld/read_config.c b/src/slurmctld/read_config.c
index 20081a5f6490c3d7a15d1613095a944fa101cb6b..8a2585fd536679ef998d787cfb33133acd2c71ba 100644
--- a/src/slurmctld/read_config.c
+++ b/src/slurmctld/read_config.c
@@ -1725,8 +1725,7 @@ static int _restore_job_dependencies(void)
 		}
 
 		license_list = license_validate(job_ptr->licenses, &valid);
-		if (job_ptr->license_list)
-			list_destroy(job_ptr->license_list);
+		FREE_NULL_LIST(job_ptr->license_list);
 		if (valid)
 			job_ptr->license_list = license_list;
 		if (IS_JOB_RUNNING(job_ptr))