From 05f0b4c6538349a6c356936c4c2a47ce2dd52298 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Fri, 24 Aug 2012 21:14:40 +0000 Subject: [PATCH] Couple of minor cleanups This commit was SVN r27135. --- orte/mca/filem/raw/filem_raw_module.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/orte/mca/filem/raw/filem_raw_module.c b/orte/mca/filem/raw/filem_raw_module.c index ab15375bfa..2c61faa763 100644 --- a/orte/mca/filem/raw/filem_raw_module.c +++ b/orte/mca/filem/raw/filem_raw_module.c @@ -583,6 +583,7 @@ static int raw_link_local_files(orte_job_t *jdata, ORTE_NAME_PRINT(&proc->name))); /* get the session dir name in absolute form */ + path = NULL; rc = orte_session_dir_get_name(&path, &prefix, NULL, orte_process_info.nodename, NULL, &proc->name); @@ -592,6 +593,7 @@ static int raw_link_local_files(orte_job_t *jdata, /* doesn't exist with correct permissions, and/or we can't * create it - either way, we are done */ + free(path); return rc; } @@ -636,11 +638,10 @@ static int raw_link_local_files(orte_job_t *jdata, } } free(path); - if (NULL != prefix) { - free(prefix); - } } - + if (NULL != prefix) { + free(prefix); + } free(my_dir); return ORTE_SUCCESS; #endif