On Thu, Aug 07, 2008 at 02:28:10PM -0700, Dan Hipschman wrote:
On Thu, Aug 07, 2008 at 02:25:00PM -0700, Juan Lang wrote:
- if (ppSecurityDescriptor)
*ppSecurityDescriptor = sd;
you leak sd in the (implicit) else block here.
So does Windows.
I guess I should elaborate on that. You can request any of the four parts of the security descriptor and pass NULL for the SD itself and Windows will return them without anyway to free the memory.