[PATCH 3/6] opcservices: Fix underlying uri object leak (Valgrind).
Nikolay Sivov
nsivov at codeweavers.com
Thu Sep 13 01:21:17 CDT 2018
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/opcservices/factory.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/opcservices/factory.c b/dlls/opcservices/factory.c
index 1a98f3f49d..45e7ad71e4 100644
--- a/dlls/opcservices/factory.c
+++ b/dlls/opcservices/factory.c
@@ -331,7 +331,9 @@ static HRESULT WINAPI opc_factory_CreatePartUri(IOpcFactory *iface, LPCWSTR uri,
return hr;
}
- return opc_part_uri_create(part_uri, NULL, out);
+ hr = opc_part_uri_create(part_uri, NULL, out);
+ IUri_Release(part_uri);
+ return hr;
}
static HRESULT WINAPI opc_factory_CreateStreamOnFile(IOpcFactory *iface, LPCWSTR filename,
--
2.18.0
More information about the wine-devel
mailing list