mshtml: fix memory leak (found by Smatch).

Lionel Debroux lionel_debroux at yahoo.fr
Sat Oct 27 07:41:05 CDT 2007


---
 dlls/mshtml/protocol.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/protocol.c b/dlls/mshtml/protocol.c
index 5f197fd..c87f42e 100644
--- a/dlls/mshtml/protocol.c
+++ b/dlls/mshtml/protocol.c
@@ -602,6 +602,7 @@ static HRESULT WINAPI ResProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
     if(!hdll) {
         WARN("Could not open dll: %s\n", debugstr_w(url_dll));
         IInternetProtocolSink_ReportResult(pOIProtSink, HRESULT_FROM_WIN32(GetLastError()), 0, NULL);
+        mshtml_free(url);
         return HRESULT_FROM_WIN32(GetLastError());
     }
 
-- 
1.5.3.2


--------------030000000400060808070007--



More information about the wine-patches mailing list