mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[CMD]
Fix yet another memory leak svn path=/trunk/; revision=58705
This commit is contained in:
parent
149e272b30
commit
54dce4f7ad
1 changed files with 2 additions and 0 deletions
|
@ -193,9 +193,11 @@ INT cmd_start (LPTSTR Rest)
|
|||
{
|
||||
if (size > MAX_PATH)
|
||||
{
|
||||
LPTSTR Oldcomspec = comspec;
|
||||
comspec = cmd_realloc(comspec,size * sizeof(TCHAR) );
|
||||
if (comspec==NULL)
|
||||
{
|
||||
cmd_free(Oldcomspec);
|
||||
return 1;
|
||||
}
|
||||
size = GetEnvironmentVariable (_T("COMSPEC"), comspec, size);
|
||||
|
|
Loading…
Reference in a new issue