Author: pschweitzer
Date: Mon Oct 3 20:42:38 2011
New Revision: 53977
URL:
http://svn.reactos.org/svn/reactos?rev=53977&view=rev
Log:
[USER32]
Fix memory leak
Modified:
trunk/reactos/dll/win32/user32/windows/message.c
Modified: trunk/reactos/dll/win32/user32/windows/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/m…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/message.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/message.c [iso-8859-1] Mon Oct 3 20:42:38
2011
@@ -885,6 +885,7 @@
&UnicodeString,
TRUE)))
{
+ HeapFree(GetProcessHeap(), 0, cs);
return FALSE;
}
cs->szClass = AnsiString.Buffer;
@@ -900,6 +901,8 @@
RtlInitAnsiString(&AnsiString, cs->szClass);
RtlFreeAnsiString(&AnsiString);
}
+
+ HeapFree(GetProcessHeap(), 0, cs);
return FALSE;
}
cs->szTitle = AnsiString.Buffer;