Daniel Lehman : msxml3/tests: Free ready state BSTR (Valgrind).

Alexandre Julliard julliard at winehq.org
Thu Mar 23 15:34:55 CDT 2017


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

Author: Daniel Lehman <dlehman25 at gmail.com>
Date:   Thu Mar 23 07:34:51 2017 -0700

msxml3/tests: Free ready state BSTR (Valgrind).

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

---

 dlls/msxml3/tests/xmlview.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msxml3/tests/xmlview.c b/dlls/msxml3/tests/xmlview.c
index 3c1d8d9..dc8ab7d 100644
--- a/dlls/msxml3/tests/xmlview.c
+++ b/dlls/msxml3/tests/xmlview.c
@@ -130,6 +130,7 @@ static HRESULT WINAPI HTMLEvents_Invoke(IDispatch *iface, DISPID dispIdMember, R
         ok(hr == S_OK, "got 0x%08x\n", hr);
         if(!memcmp(state, completeW, sizeof(completeW)))
             loaded = TRUE;
+        SysFreeString(state);
     }
 
     return S_OK;




More information about the wine-cvs mailing list