Fix memory leek in ldb_ldif_write()

Volker Lendecke Volker.Lendecke at SerNet.DE
Sat Dec 5 14:57:15 MST 2009


On Sat, Dec 05, 2009 at 04:56:07PM -0500, simo wrote:
> On Sat, 2009-12-05 at 22:35 +0100, Volker Lendecke wrote:
> > On Sat, Dec 05, 2009 at 10:53:43PM +0200, Kamen Mazdrashki wrote:
> > > It seems you are the ‘owner’ of ldb_ldif_write().
> > > Please find attached a small patch to fix a memory leek.
> > 
> > There's more of those. CHECK_RET can return, leaving
> > mem_ctx around.
> 
> Nope, within CHECK_RET there is a talloc_free(mem_ctx);

Thanks :-)

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20091205/25647608/attachment.pgp>


More information about the samba-technical mailing list