Alexandre Julliard : ntdll: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Mon Jul 20 15:30:08 CDT 2020


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jul 20 11:45:58 2020 +0200

ntdll: Fix a memory leak.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/env.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index 74cea11be5..dc81d4e604 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -1142,6 +1142,7 @@ NTSTATUS CDECL get_dynamic_environment( WCHAR *env, SIZE_T *size )
     }
     else status = STATUS_BUFFER_TOO_SMALL;
     *size = pos + 1;
+    free( buffer );
     return status;
 }
 




More information about the wine-cvs mailing list