1
1

orte-submit: fix a misc memory leak

as reported by Coverity with CID 710651
Этот коммит содержится в:
Gilles Gouaillardet 2015-06-03 13:37:51 +09:00
родитель 67638690ea
Коммит e77d3057d6

Просмотреть файл

@ -1510,7 +1510,6 @@ static int parse_appfile(orte_job_t *jdata, char *filename, char ***env)
if (NULL != tmp_env) {
opal_argv_free(tmp_env);
}
opal_argv_free(argv);
if (made_app) {
app->idx = app_num;
++app_num;
@ -1518,6 +1517,7 @@ static int parse_appfile(orte_job_t *jdata, char *filename, char ***env)
++jdata->num_apps;
}
}
opal_argv_free(argv);
} while (!feof(fp));
fclose(fp);