From cc94a1db0186e83ea9f3327c6aa41472332ba60d Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 1 Nov 2009 18:04:58 +0100 Subject: [PATCH] mshtml: Free the right variable (Smatch). --- dlls/mshtml/htmlwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 5b07b0f8989..b278a5c4618 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -1562,7 +1562,7 @@ HRESULT HTMLWindow_Create(HTMLDocumentObj *doc_obj, nsIDOMWindow *nswindow, HTML window->window_ref = heap_alloc(sizeof(windowref_t)); if(!window->window_ref) { - heap_free(window->window_ref); + heap_free(window); return E_OUTOFMEMORY; }