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
1 changed files with 2 additions and 0 deletions

View File

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