Nikolay Sivov : opcservices: Fix uri path leak (Valgrind).
Module: wine Branch: master Commit: 397517bee2a9ace0e7216e86b5ef500e520732eb URL: https://source.winehq.org/git/wine.git/?a=commit;h=397517bee2a9ace0e7216e86b... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu Sep 13 09:21:16 2018 +0300 opcservices: Fix uri path leak (Valgrind). Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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; }
participants (1)
-
Alexandre Julliard