From: Pierre Schweitzer Date: Sat, 24 Oct 2015 09:39:20 +0000 (+0000) Subject: [MSGINA] X-Git-Tag: ReactOS-0.4.0~388 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=6f7ec944d5f73566ef123d9b10e8a02ceca3dcb9 [MSGINA] Don't leak memory CID 1206901 svn path=/trunk/; revision=69667 --- diff --git a/reactos/dll/win32/msgina/gui.c b/reactos/dll/win32/msgina/gui.c index 3ac474dd8cc..ec41f4b5032 100644 --- a/reactos/dll/win32/msgina/gui.c +++ b/reactos/dll/win32/msgina/gui.c @@ -1306,7 +1306,10 @@ DoUnlock( BOOL res = FALSE; if (GetTextboxText(hwndDlg, IDC_USERNAME, &UserName) && *UserName == '\0') + { + HeapFree(GetProcessHeap(), 0, UserName); return FALSE; + } if (GetTextboxText(hwndDlg, IDC_PASSWORD, &Password)) {