Nikolay Sivov : opcservices: Fix underlying uri object leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Thu Sep 13 15:14:47 CDT 2018


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Sep 13 09:21:17 2018 +0300

opcservices: Fix underlying uri object leak (Valgrind).

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

---

 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 1a98f3f..45e7ad7 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,




More information about the wine-cvs mailing list