Sven Baars : ole32/tests: Fix a memory leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Thu Jan 17 16:08:48 CST 2019


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

Author: Sven Baars <sven.wine at gmail.com>
Date:   Thu Jan 17 16:03:27 2019 +0100

ole32/tests: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ole32/tests/ole2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/ole32/tests/ole2.c b/dlls/ole32/tests/ole2.c
index f0ff24b..b71a103 100644
--- a/dlls/ole32/tests/ole2.c
+++ b/dlls/ole32/tests/ole2.c
@@ -4091,6 +4091,8 @@ static void check_storage_contents(IStorage *stg, const struct storage_def *stg_
 
         *enumerated_streams += 1;
     }
+
+    IEnumSTATSTG_Release(enumstg);
 }
 
 static HRESULT stgmedium_cmp(const STGMEDIUM *med1, STGMEDIUM *med2)




More information about the wine-cvs mailing list