orte-clean: use pclose instead of fclose
as reported by Coverity with CID 1287029
Этот коммит содержится в:
родитель
87fb1a798c
Коммит
33841361c0
@ -353,7 +353,7 @@ void kill_procs(void) {
|
|||||||
*/
|
*/
|
||||||
if (NULL == (inputline = orte_getline(psfile))) {
|
if (NULL == (inputline = orte_getline(psfile))) {
|
||||||
free(this_user);
|
free(this_user);
|
||||||
fclose(psfile);
|
pclose(psfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
free(inputline); /* dump the header line */
|
free(inputline); /* dump the header line */
|
||||||
@ -444,6 +444,6 @@ void kill_procs(void) {
|
|||||||
free(procname);
|
free(procname);
|
||||||
}
|
}
|
||||||
free(this_user);
|
free(this_user);
|
||||||
fclose(psfile);
|
pclose(psfile);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user