From 5587efe51b4de167a91f2044d332c51807100d69 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 30 Apr 2017 23:07:12 +0300 Subject: [PATCH] mshtml/tests: Fix BSTR double-free (Coverity). Signed-off-by: Nikolay Sivov Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/tests/script.c | 1 - 1 file changed, 1 deletion(-) diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c index 41aaa3e744c..322314b3160 100644 --- a/dlls/mshtml/tests/script.c +++ b/dlls/mshtml/tests/script.c @@ -3118,7 +3118,6 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri, }else { src = FindResourceW(NULL, *path == '/' ? path+1 : path, (const WCHAR*)RT_HTML); ok(src != NULL, "Could not find resource for path %s\n", wine_dbgstr_w(path)); - SysFreeString(path); if(src) { This->size = SizeofResource(NULL, src); This->data = LoadResource(NULL, src);