Author: khornicek
Date: Sat Oct 18 16:07:45 2008
New Revision: 36813
URL:
http://svn.reactos.org/svn/reactos?rev=36813&view=rev
Log:
fix resource leak, CID 611
Modified:
trunk/reactos/base/shell/explorer/services/startup.c
Modified: trunk/reactos/base/shell/explorer/services/startup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/explorer/servic…
==============================================================================
--- trunk/reactos/base/shell/explorer/services/startup.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/explorer/services/startup.c [iso-8859-1] Sat Oct 18 16:07:45
2008
@@ -349,6 +349,7 @@
{
printf("Couldn't allocate memory for the value names\n");
+ free(szCmdLine);
res=ERROR_NOT_ENOUGH_MEMORY;
goto end;
}
@@ -388,6 +389,7 @@
printf("Done processing cmd #%ld\n", i);
}
+ free(szValue);
res=ERROR_SUCCESS;
end: