msvcrt: Fix a possible memory leak in _wsystem for the NULL command case.

Spotted with Valgrind.
This commit is contained in:
Andrew Nguyen 2011-01-15 02:28:13 -06:00 committed by Alexandre Julliard
parent 9361b61949
commit b42f162563
1 changed files with 1 additions and 0 deletions

View File

@ -1169,6 +1169,7 @@ int CDECL _wsystem(const MSVCRT_wchar_t* cmd)
*MSVCRT__errno() = MSVCRT_ENOENT;
return 0;
}
HeapFree(GetProcessHeap(), 0, comspec);
return 1;
}