Alexandre Julliard : ntdll: Fix memory leak in RtlNormalizeString().
Alexandre Julliard
julliard at winehq.org
Mon Dec 30 15:59:43 CST 2019
Module: wine
Branch: master
Commit: aeab1b2a6bd75404dfd6918bfca10caad5c44b30
URL: https://source.winehq.org/git/wine.git/?a=commit;h=aeab1b2a6bd75404dfd6918bfca10caad5c44b30
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Dec 30 12:05:32 2019 +0100
ntdll: Fix memory leak in RtlNormalizeString().
Spotted by Piotr Caban.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/locale.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ntdll/locale.c b/dlls/ntdll/locale.c
index 7e85f344dd..b3717b3316 100644
--- a/dlls/ntdll/locale.c
+++ b/dlls/ntdll/locale.c
@@ -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 );
}
}
More information about the wine-cvs
mailing list