Commit 2146a442 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

ntdll: Fix a memory leak (Coverity).

parent aeda480e
......@@ -87,7 +87,10 @@ NTSTATUS WINAPI NtCreateToken( HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIB
}
if (primary_group == -1)
{
free( objattr );
return STATUS_INVALID_PRIMARY_GROUP;
}
groups_info = malloc( groups_size );
if (!groups_info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment