From 061fb815d6fa8180898d770818478173bd10e70a Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Thu, 18 Dec 2008 15:52:52 -0600 Subject: [PATCH] shell32: Fix a memory leak in the run dialog code. --- dlls/shell32/dialogs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c index 844b8f48311..0fdc951c85e 100644 --- a/dlls/shell32/dialogs.c +++ b/dlls/shell32/dialogs.c @@ -240,6 +240,7 @@ static INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPAR MessageBoxA (hwnd, szMsg, "Nix", MB_OK | MB_ICONEXCLAMATION) ; HeapFree(GetProcessHeap(), 0, psz); + HeapFree(GetProcessHeap(), 0, parent); SendMessageA (htxt, CB_SETEDITSEL, 0, MAKELPARAM (0, -1)) ; return TRUE ; } -- 2.11.4.GIT