1
1

orte-clean: use pclose instead of fclose

as reported by Coverity with CID 1287029
Этот коммит содержится в:
Gilles Gouaillardet 2015-03-09 11:17:59 +09:00
родитель 87fb1a798c
Коммит 33841361c0

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

@ -353,7 +353,7 @@ void kill_procs(void) {
*/
if (NULL == (inputline = orte_getline(psfile))) {
free(this_user);
fclose(psfile);
pclose(psfile);
return;
}
free(inputline); /* dump the header line */
@ -444,6 +444,6 @@ void kill_procs(void) {
free(procname);
}
free(this_user);
fclose(psfile);
pclose(psfile);
return;
}