ntdll: Fix a memory leak.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2683be090b
commit
b1af31b47a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue