Author: pschweitzer
Date: Sat Oct 24 09:39:20 2015
New Revision: 69667
URL:
http://svn.reactos.org/svn/reactos?rev=69667&view=rev
Log:
[MSGINA]
Don't leak memory
CID 1206901
Modified:
trunk/reactos/dll/win32/msgina/gui.c
Modified: trunk/reactos/dll/win32/msgina/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msgina/gui.c?rev…
==============================================================================
--- trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msgina/gui.c [iso-8859-1] Sat Oct 24 09:39:20 2015
@@ -1306,7 +1306,10 @@
BOOL res = FALSE;
if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName ==
'\0')
+ {
+ HeapFree(GetProcessHeap(), 0, UserName);
return FALSE;
+ }
if (GetTextboxText(hwndDlg, IDC_PASSWORD, &Password))
{