Module: wine Branch: master Commit: 0a6bdc79e3de9bf0c2461d4970bec35a743d83c6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a6bdc79e3de9bf0c2461d4970...
Author: Lionel Debroux lionel_debroux@yahoo.fr Date: Sat Oct 27 15:04:28 2007 +0200
credui: Fix memory leak (found by Smatch).
---
dlls/credui/credui_main.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/credui/credui_main.c b/dlls/credui/credui_main.c index 2f1a113..93d5b88 100644 --- a/dlls/credui/credui_main.c +++ b/dlls/credui/credui_main.c @@ -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, '@')) {