How to release pointer returned by GetAce

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top