Nikolay Sivov : mshtml/tests: Fix BSTR double-free (Coverity).

Alexandre Julliard julliard at winehq.org
Mon May 1 16:38:04 CDT 2017


Module: wine
Branch: master
Commit: 5587efe51b4de167a91f2044d332c51807100d69
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5587efe51b4de167a91f2044d332c51807100d69

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Apr 30 23:07:12 2017 +0300

mshtml/tests: Fix BSTR double-free (Coverity).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 41aaa3e..322314b 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);




More information about the wine-cvs mailing list