Daniel Lehman : msxml3/tests: Avoid double-free using BSTR helper.

Alexandre Julliard julliard at winehq.org
Fri Sep 17 16:03:08 CDT 2021


Module: wine
Branch: master
Commit: 001aa01760168cd7e21e70bc1bb5fcc39a8432c3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=001aa01760168cd7e21e70bc1bb5fcc39a8432c3

Author: Daniel Lehman <dlehman at esri.com>
Date:   Tue Sep 14 11:18:50 2021 -0700

msxml3/tests: Avoid double-free using BSTR helper.

Signed-off-by: Daniel Lehman <dlehman at esri.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msxml3/tests/domdoc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index a0bcca2d4e9..9e9789ebd9a 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -13644,11 +13644,11 @@ todo_wine
     ok(hr == S_OK, "got %#x\n", hr);
     ok(b == VARIANT_TRUE, "got %d\n", b);
     ok(qi_count == 0, "got %d QI calls\n", qi_count);
-    SysFreeString(V_BSTR(&var));
 
     IXMLDOMDocument2_Release(doc);
 
     DeleteFileA(path);
+    free_bstrs();
 }
 
 START_TEST(domdoc)




More information about the wine-cvs mailing list