ntdll: Fix memory leak in RtlNormalizeString().

Spotted by Piotr Caban.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-12-30 12:05:32 +01:00
parent fa97cbdf14
commit aeab1b2a6b
1 changed files with 1 additions and 0 deletions

View File

@ -1592,6 +1592,7 @@ NTSTATUS WINAPI RtlNormalizeString( ULONG form, const WCHAR *src, INT src_len, W
res = wine_decompose_string( flags, src, src_len, buf, buf_len );
if (res) break;
buf_len *= 2;
RtlFreeHeap( GetProcessHeap(), 0, buf );
}
}