advapi32: Free descriptor if it isn't returned from GetSecurityInfo().

This commit is contained in:
Nikolay Sivov 2010-01-08 21:05:21 +03:00 committed by Alexandre Julliard
parent b4c6433063
commit dbd76575ef

View File

@ -3118,6 +3118,8 @@ DWORD WINAPI GetSecurityInfo(
}
if (ppSecurityDescriptor)
*ppSecurityDescriptor = sd;
else
LocalFree(sd);
return ERROR_SUCCESS;
}