ntdll: Fix a memory leak.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-07-20 11:45:58 +02:00
parent 2683be090b
commit b1af31b47a
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}