Skip to content

Commit 97e38e6

Browse files
author
Ralph Castain
committed
Move a free to a little later in case the verbose output needs it
Signed-off-by: Ralph Castain <[email protected]>
1 parent bb81f3b commit 97e38e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orte/mca/plm/slurm/plm_slurm_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ static void launch_daemons(int fd, short args, void *cbdata)
356356
opal_argv_append(&argc, &argv, tmp);
357357
free(tmp);
358358
}
359-
free(nodelist_flat);
360359

361360
/* tell srun how many tasks to run */
362361
asprintf(&tmp, "--ntasks=%lu", (unsigned long)map->num_new_daemons);
@@ -366,6 +365,7 @@ static void launch_daemons(int fd, short args, void *cbdata)
366365
OPAL_OUTPUT_VERBOSE((2, orte_plm_base_framework.framework_output,
367366
"%s plm:slurm: launching on nodes %s",
368367
ORTE_NAME_PRINT(ORTE_PROC_MY_NAME), nodelist_flat));
368+
free(nodelist_flat);
369369

370370
/*
371371
* ORTED OPTIONS

0 commit comments

Comments
 (0)