From a610843e9f21ee77fd29356313d2ef05fe25a1ed Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 1 Sep 2009 12:07:49 +1000 Subject: s4:ldb always talloc_free() the ldb_ldif_write context, even on success --- source4/lib/ldb/common/ldb_ldif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4') diff --git a/source4/lib/ldb/common/ldb_ldif.c b/source4/lib/ldb/common/ldb_ldif.c index b7ab7300b2..9705179f18 100644 --- a/source4/lib/ldb/common/ldb_ldif.c +++ b/source4/lib/ldb/common/ldb_ldif.c @@ -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; } -- cgit