Author: pschweitzer
Date: Sat May 16 12:07:38 2015
New Revision: 67771
URL:
http://svn.reactos.org/svn/reactos?rev=67771&view=rev
Log:
[CRT]
Don't mess up with the stack nor leak resources
Modified:
trunk/reactos/lib/sdk/crt/process/process.c
Modified: trunk/reactos/lib/sdk/crt/process/process.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/process/proces…
==============================================================================
--- trunk/reactos/lib/sdk/crt/process/process.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/process/process.c [iso-8859-1] Sat May 16 12:07:38 2015
@@ -344,6 +344,7 @@
ret = do_spawnT(mode, cmdname, args, NULL);
free(args);
}
+ va_end(argp);
return ret;
}
@@ -398,6 +399,7 @@
{
free(envs);
}
+ va_end(argp);
return ret;
}
@@ -459,6 +461,7 @@
ret = do_spawnT(mode, find_execT(cmdname, pathname), args, NULL);
free(args);
}
+ va_end(argp);
return ret;
}
@@ -495,6 +498,7 @@
{
free(envs);
}
+ va_end(argp);
return ret;
}
@@ -529,6 +533,7 @@
ret = do_spawnT(_P_OVERLAY, cmdname, args, NULL);
free(args);
}
+ va_end(argp);
return ret;
}
@@ -572,6 +577,7 @@
{
free(envs);
}
+ va_end(argp);
return ret;
}
@@ -604,6 +610,7 @@
ret = do_spawnT(_P_OVERLAY, find_execT(cmdname, pathname), args, NULL);
free(args);
}
+ va_end(argp);
return ret;
}
@@ -648,6 +655,7 @@
{
free(envs);
}
+ va_end(argp);
return ret;
}