credui: Fix memory leak (found by Smatch).
This commit is contained in:
parent
a155665d65
commit
0a6bdc79e3
|
@ -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, '@'))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue