advapi32: Implement GetSecurityInfo. [take 3]

Dan Hipschman dsh at linux.ucla.edu
Thu Aug 7 16:31:30 CDT 2008


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.



More information about the wine-devel mailing list