mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 12:53:33 +00:00
forgot to free comspec, very sorry.
svn path=/trunk/; revision=17873
This commit is contained in:
parent
b494052296
commit
691589bdf4
|
@ -78,6 +78,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
|||
rest = malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR));
|
||||
if (rest == NULL)
|
||||
{
|
||||
if(compsec != NULL)
|
||||
free(comspec);
|
||||
error_out_of_memory();
|
||||
return 1;
|
||||
}
|
||||
|
@ -85,6 +87,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
|||
param =malloc ( _tcslen(Rest) + 1 * sizeof(TCHAR));
|
||||
if (rest == NULL)
|
||||
{
|
||||
if(compsec != NULL)
|
||||
free(comspec);
|
||||
free(rest);
|
||||
error_out_of_memory();
|
||||
return 1;
|
||||
|
@ -160,7 +164,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
|||
|
||||
if (param != NULL)
|
||||
free(param);
|
||||
|
||||
if (compsec != NULL)
|
||||
free(comspec);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -177,6 +182,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
|||
if (param != NULL)
|
||||
free(param);
|
||||
|
||||
if (compsec != NULL)
|
||||
free(comspec);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -266,6 +273,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest)
|
|||
if (param != NULL)
|
||||
free(param);
|
||||
|
||||
if (compsec != NULL)
|
||||
free(comspec);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue