advapi32: Free descriptor if it isn't returned from GetSecurityInfo().
This commit is contained in:
parent
b4c6433063
commit
dbd76575ef
|
@ -3118,6 +3118,8 @@ DWORD WINAPI GetSecurityInfo(
|
||||||
}
|
}
|
||||||
if (ppSecurityDescriptor)
|
if (ppSecurityDescriptor)
|
||||||
*ppSecurityDescriptor = sd;
|
*ppSecurityDescriptor = sd;
|
||||||
|
else
|
||||||
|
LocalFree(sd);
|
||||||
|
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue