Fix memory leek in ldb_ldif_write()
simo
idra at samba.org
Sat Dec 5 14:56:07 MST 2009
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);
Simo.
--
Simo Sorce
Samba Team GPL Compliance Officer <simo at samba.org>
Principal Software Engineer at Red Hat, Inc. <simo at redhat.com>
More information about the samba-technical
mailing list