From 3b5a9e73772e6a2e6a89cfd641da6bc6e18300aa Mon Sep 17 00:00:00 2001 From: Tim Woodall Date: Wed, 13 Apr 2005 17:51:43 +0000 Subject: [PATCH] removed duplicate free This commit was SVN r5312. --- src/mca/rds/hostfile/rds_hostfile.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mca/rds/hostfile/rds_hostfile.c b/src/mca/rds/hostfile/rds_hostfile.c index c201a605e2..3ecc34dea3 100644 --- a/src/mca/rds/hostfile/rds_hostfile.c +++ b/src/mca/rds/hostfile/rds_hostfile.c @@ -222,9 +222,6 @@ static int orte_rds_hostfile_query(void) goto cleanup; } - if (NULL != mca_rds_hostfile_component.path) { - free(mca_rds_hostfile_component.path); - } rc = mca_base_param_find("rds", "hostfile", "path"); mca_base_param_lookup_string(rc, &mca_rds_hostfile_component.path); rc = orte_rds_hostfile_parse(mca_rds_hostfile_component.path, &existing, &updates); @@ -243,6 +240,7 @@ static int orte_rds_hostfile_query(void) cleanup: if (NULL != 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))) {