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