Author: akhaldi Date: Sun Oct 2 19:14:45 2011 New Revision: 53934
URL: http://svn.reactos.org/svn/reactos?rev=53934&view=rev Log: [SYSDM] * Fix a memory leak.
Modified: trunk/reactos/dll/cpl/sysdm/startrec.c
Modified: trunk/reactos/dll/cpl/sysdm/startrec.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/startrec.c?re... ============================================================================== --- trunk/reactos/dll/cpl/sysdm/startrec.c [iso-8859-1] (original) +++ trunk/reactos/dll/cpl/sysdm/startrec.c [iso-8859-1] Sun Oct 2 19:14:45 2011 @@ -455,7 +455,10 @@
dwBufSize = GetSystemDrive(&szSystemDrive); if (dwBufSize == 0) + { + HeapFree(GetProcessHeap(), 0, szSystemDrive); return FALSE; + }
wcscpy(pStartInfo->szFreeldrIni, szSystemDrive); wcscat(pStartInfo->szFreeldrIni, L"\freeldr.ini");