shcore: Fix path string leak for file streams (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-12-14 03:59:07 +03:00 committed by Alexandre Julliard
parent 392bce96c1
commit 0e966cbf5c
1 changed files with 1 additions and 0 deletions

View File

@ -839,6 +839,7 @@ static ULONG WINAPI filestream_Release(IStream *iface)
if (!refcount)
{
CloseHandle(stream->u.file.handle);
heap_free(stream->u.file.path);
heap_free(stream);
}