Author: akhaldi
Date: Sat Jun 28 09:59:58 2014
New Revision: 63653
URL:
http://svn.reactos.org/svn/reactos?rev=63653&view=rev
Log:
[CMD]
* Plug a leak. CID 1102398.
CORE-7975
Modified:
trunk/reactos/base/shell/cmd/cmd.c
Modified: trunk/reactos/base/shell/cmd/cmd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/cmd.c?rev=6…
==============================================================================
--- trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/cmd.c [iso-8859-1] Sat Jun 28 09:59:58 2014
@@ -1838,6 +1838,7 @@
if (!GetConsoleScreenBufferInfo(hConsole, &Info))
{
ConErrFormatMessage(GetLastError());
+ CloseHandle(hConsole);
return(1);
}
wDefColor = Info.wAttributes;