forgot to free comspec, very sorry.
Modified: trunk/reactos/subsys/system/cmd/start.c
_____
Modified: trunk/reactos/subsys/system/cmd/start.c
--- trunk/reactos/subsys/system/cmd/start.c 2005-09-16 04:40:46 UTC
(rev 17872)
+++ trunk/reactos/subsys/system/cmd/start.c 2005-09-16 04:46:06 UTC
(rev 17873)
@@ -78,6 +78,8 @@
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 @@
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 @@
if (param != NULL)
free(param);
-
+ if (compsec != NULL)
+ free(comspec);
return 0;
}
@@ -177,6 +182,8 @@
if (param != NULL)
free(param);
+ if (compsec != NULL)
+ free(comspec);
return 1;
}
@@ -266,6 +273,8 @@
if (param != NULL)
free(param);
+ if (compsec != NULL)
+ free(comspec);
return 0;
}
Show replies by date