msvcrt: Fix a possible memory leak in _wsystem for the NULL command case.
Spotted with Valgrind.
This commit is contained in:
parent
9361b61949
commit
b42f162563
|
@ -1169,6 +1169,7 @@ int CDECL _wsystem(const MSVCRT_wchar_t* cmd)
|
|||
*MSVCRT__errno() = MSVCRT_ENOENT;
|
||||
return 0;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, comspec);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue