s4:ldb always talloc_free() the ldb_ldif_write context, even on success
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Sep 2009 02:07:49 +0000 (12:07 +1000)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 2 Oct 2009 10:45:02 +0000 (12:45 +0200)
source4/lib/ldb/common/ldb_ldif.c

index b7ab7300b2508347005e5e14231321507a64c2c2..9705179f1879b20c7514a42f2406024b674d5c1c 100644 (file)
@@ -373,6 +373,7 @@ int ldb_ldif_write(struct ldb_context *ldb,
        ret = fprintf_fn(private_data,"\n");
        CHECK_RET;
 
+       talloc_free(mem_ctx);
        return total;
 }