From 2d5809b784b4abfaeb002988bc1849ecace6e7a9 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 16 May 2015 12:07:38 +0000 Subject: [PATCH] [CRT] Don't mess up with the stack nor leak resources svn path=/trunk/; revision=67771 --- reactos/lib/sdk/crt/process/process.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/lib/sdk/crt/process/process.c b/reactos/lib/sdk/crt/process/process.c index 74f86807992..5a6e1aaec4e 100644 --- a/reactos/lib/sdk/crt/process/process.c +++ b/reactos/lib/sdk/crt/process/process.c @@ -344,6 +344,7 @@ intptr_t _tspawnl(int mode, const _TCHAR *cmdname, const _TCHAR* arg0, ...) ret = do_spawnT(mode, cmdname, args, NULL); free(args); } + va_end(argp); return ret; } @@ -398,6 +399,7 @@ intptr_t _tspawnle(int mode, const _TCHAR *cmdname, const _TCHAR* arg0, ... /*, { free(envs); } + va_end(argp); return ret; } @@ -459,6 +461,7 @@ intptr_t _tspawnlp(int mode, const _TCHAR* cmdname, const _TCHAR* arg0, .../*, N ret = do_spawnT(mode, find_execT(cmdname, pathname), args, NULL); free(args); } + va_end(argp); return ret; } @@ -495,6 +498,7 @@ intptr_t _tspawnlpe(int mode, const _TCHAR* cmdname, const _TCHAR* arg0, .../*, { free(envs); } + va_end(argp); return ret; } @@ -529,6 +533,7 @@ intptr_t _texecl(const _TCHAR* cmdname, const _TCHAR* arg0, ...) ret = do_spawnT(_P_OVERLAY, cmdname, args, NULL); free(args); } + va_end(argp); return ret; } @@ -572,6 +577,7 @@ intptr_t _texecle(const _TCHAR* cmdname, const _TCHAR* arg0, ... /*, NULL, char* { free(envs); } + va_end(argp); return ret; } @@ -604,6 +610,7 @@ intptr_t _texeclp(const _TCHAR* cmdname, const _TCHAR* arg0, ...) ret = do_spawnT(_P_OVERLAY, find_execT(cmdname, pathname), args, NULL); free(args); } + va_end(argp); return ret; } @@ -648,6 +655,7 @@ intptr_t _texeclpe(const _TCHAR* cmdname, const _TCHAR* arg0, ... /*, NULL, char { free(envs); } + va_end(argp); return ret; }