removed duplicate free
This commit was SVN r5312.
Этот коммит содержится в:
родитель
55f9f800b1
Коммит
3b5a9e7377
@ -222,9 +222,6 @@ static int orte_rds_hostfile_query(void)
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NULL != mca_rds_hostfile_component.path) {
|
|
||||||
free(mca_rds_hostfile_component.path);
|
|
||||||
}
|
|
||||||
rc = mca_base_param_find("rds", "hostfile", "path");
|
rc = mca_base_param_find("rds", "hostfile", "path");
|
||||||
mca_base_param_lookup_string(rc, &mca_rds_hostfile_component.path);
|
mca_base_param_lookup_string(rc, &mca_rds_hostfile_component.path);
|
||||||
rc = orte_rds_hostfile_parse(mca_rds_hostfile_component.path, &existing, &updates);
|
rc = orte_rds_hostfile_parse(mca_rds_hostfile_component.path, &existing, &updates);
|
||||||
@ -243,6 +240,7 @@ static int orte_rds_hostfile_query(void)
|
|||||||
cleanup:
|
cleanup:
|
||||||
if (NULL != mca_rds_hostfile_component.path) {
|
if (NULL != mca_rds_hostfile_component.path) {
|
||||||
free(mca_rds_hostfile_component.path);
|
free(mca_rds_hostfile_component.path);
|
||||||
|
mca_rds_hostfile_component.path = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
while(NULL != (item = ompi_list_remove_first(&existing))) {
|
while(NULL != (item = ompi_list_remove_first(&existing))) {
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user