Commit 0a6bdc79 authored by Lionel Debroux's avatar Lionel Debroux Committed by Alexandre Julliard

credui: Fix memory leak (found by Smatch).

parent a155665d
......@@ -170,7 +170,10 @@ static INT_PTR CALLBACK CredDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
GetWindowTextW(hwndUsername, user, len + 1);
if (!user[0])
{
HeapFree(GetProcessHeap(), 0, user);
return TRUE;
}
if (!strchrW(user, '\\') && !strchrW(user, '@'))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment