How to release pointer returned by GetAce

  • Thread starter Thread starter Yi Wang
  • Start date Start date
Y

Yi Wang

GetSecurityDescriptorDacl and GetAce both return a pointer (to ACL and
ACE). Should I release them? and how to?

MSDN does not explain this.

A sample program from DevX using free() to release pACE returned by
GetAce, and does not release pACL from GetSecurityDescriptorDacl.

Thanks.
 
Back
Top