[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-cvs
Subject:    =?UTF-8?Q?Alexandre_Julliard_=3A_ntdll=3A_Fix_memory_leak_in_RtlNormalize?= =?UTF-8?Q?String=28=29=2
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2019-12-30 21:59:43
Message-ID: E1im34h-0003nx-O9 () winehq ! org
[Download RAW message or body]

Module: wine
Branch: master
Commit: aeab1b2a6bd75404dfd6918bfca10caad5c44b30
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=aeab1b2a6bd75404dfd6918bfca10caad5c44b30

Author: Alexandre Julliard <julliard@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@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 );
         }
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic