// wdm.h
VOID ObReleaseObjectSecurity(
[in] PSECURITY_DESCRIPTOR SecurityDescriptor,
[in] BOOLEAN MemoryAllocated
);
View the official Windows Driver Kit DDI reference
No description available.
The ObReleaseObjectSecurity routine is the reciprocal to ObGetObjectSecurity.
SecurityDescriptor
[in]Pointer to the buffered SECURITY_DESCRIPTOR to be released. The caller obtained this parameter from ObGetObjectSecurity
MemoryAllocated
[in]Specifies the value also obtained from ObGetObjectSecurity.
After a successful call to ObGetObjectSecurity, a driver must call ObReleaseObjectSecurity eventually.
ObReleaseObjectSecurity releases any resources that were allocated by ObGetObjectSecurity. It also decrements the reference count on the given security descriptor.