Nikolay Sivov : opcservices: Fix uri path leak (Valgrind).

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


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

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

opcservices: Fix uri path leak (Valgrind).

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

---

 dlls/opcservices/uri.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/opcservices/uri.c b/dlls/opcservices/uri.c
index e461eba..ddb2c05 100644
--- a/dlls/opcservices/uri.c
+++ b/dlls/opcservices/uri.c
@@ -476,6 +476,7 @@ static IUri *opc_part_uri_get_rels_uri(IUri *uri)
     if (FAILED(hr = CreateUri(ret, Uri_CREATE_ALLOW_RELATIVE, 0, &rels_uri)))
         WARN("Failed to create rels uri, hr %#x.\n", hr);
     heap_free(ret);
+    SysFreeString(path);
 
     return rels_uri;
 }




More information about the wine-cvs mailing list