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

ERR: Added error check for malloc of process control structure.

parent 34e0c4a4
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,11 @@ kwsysProcess* kwsysProcess_New()
/* Allocate a process control structure. */
cp = (kwsysProcess*)malloc(sizeof(kwsysProcess));
if(!cp)
{
/* Could not allocate memory for the control structure. */
return 0;
}
ZeroMemory(cp, sizeof(*cp));
/* Set initial status. */
......
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