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

Sven Baars sven.wine at gmail.com
Thu Jan 17 09:03:27 CST 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 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 f0ff24b622..422e03a358 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;
     }
+
+    IStorage_Release(enumstg);
 }
 
 static HRESULT stgmedium_cmp(const STGMEDIUM *med1, STGMEDIUM *med2)
-- 
2.17.1




More information about the wine-devel mailing list