summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-09-01 12:07:49 +1000
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-02 12:45:02 +0200
commita610843e9f21ee77fd29356313d2ef05fe25a1ed (patch)
tree35343d84d5e1750e7ce8320b19ae606d658afd4d /source4/lib/ldb
parentf0c2c9854c7659221fe9480110a7d9b2b48afbf9 (diff)
downloadsamba-a610843e9f21ee77fd29356313d2ef05fe25a1ed.tar.gz
samba-a610843e9f21ee77fd29356313d2ef05fe25a1ed.tar.bz2
samba-a610843e9f21ee77fd29356313d2ef05fe25a1ed.zip
s4:ldb always talloc_free() the ldb_ldif_write context, even on success
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_ldif.c1
1 files changed, 1 insertions, 0 deletions
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;
}