Module: wine Branch: master Commit: 2f2a5a2ea1898780698a8b056c412cd133532b21 URL: https://source.winehq.org/git/wine.git/?a=commit;h=2f2a5a2ea1898780698a8b056...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Thu Sep 13 09:21:17 2018 +0300
opcservices: Fix underlying uri object leak (Valgrind).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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,