Nikolay Sivov : urlmon/tests: Fix some leaks (Valgrind).
Alexandre Julliard
julliard at winehq.org
Thu Dec 20 14:25:27 CST 2018
Module: wine
Branch: master
Commit: f19fdad2ba18c6e2c2c30c10b1bfb61442377a7c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f19fdad2ba18c6e2c2c30c10b1bfb61442377a7c
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Dec 17 08:16:09 2018 +0300
urlmon/tests: Fix some leaks (Valgrind).
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/urlmon/tests/uri.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/urlmon/tests/uri.c b/dlls/urlmon/tests/uri.c
index 3c5e27c..b62f247 100644
--- a/dlls/urlmon/tests/uri.c
+++ b/dlls/urlmon/tests/uri.c
@@ -8366,6 +8366,7 @@ static void test_IUri_GetPropertyLength(void) {
/* Value may be unicode encoded */
expectedValueW = a2w(prop.value);
expectedLen = lstrlenW(expectedValueW);
+ heap_free(expectedValueW);
/* This won't be necessary once GetPropertyLength is implemented. */
receivedLen = -1;
@@ -11538,6 +11539,7 @@ static void test_IPersistStream(void)
ok(hr == S_OK, "%d) Error creating uninitialized Uri: 0x%08x.\n", i, hr);
hr = IUri_QueryInterface(uri, &IID_IMarshal, (void**)&marshal);
ok(hr == S_OK, "%d) QueryInterface failed 0x%08x, expected S_OK.\n", i, hr);
+ IUri_Release(uri);
hr = IMarshal_UnmarshalInterface(marshal, stream, &IID_IUri, (void**)&uri);
ok(hr == S_OK, "%d) UnmarshalInterface failed 0x%08x, expected S_OK.\n", i, hr);
hr = IUri_GetRawUri(uri, &raw_uri);
More information about the wine-cvs
mailing list