Skip to content
Snippets Groups Projects
Commit 127b9e11 authored by Brad King's avatar Brad King
Browse files

BUG: Do not leak ps FILE when the process starts but reading the header fails.

parent 45846cf6
No related branches found
No related tags found
No related merge requests found
......@@ -1997,8 +1997,11 @@ static void kwsysProcessKill(pid_t process_id)
kwsysProcessKill(pid);
}
}
}
/* We are done with the ps process. */
/* We are done with the ps process. */
if(ps)
{
pclose(ps);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment