opcservices: Fix uri path leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-09-13 09:21:16 +03:00 committed by Alexandre Julliard
parent d63a037eac
commit 397517bee2
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}