summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-12-05 22:49:59 +0200
committerSimo Sorce <idra@samba.org>2009-12-05 16:57:40 -0500
commit9b265a68ccf74a03bff946bc10f96a38045c923a (patch)
tree6ca2da59cb2ee6c1adc607b5b61115c205502927 /source4
parent21d3aa814577690dac0e301bc2863c0f464f0e2e (diff)
downloadsamba-9b265a68ccf74a03bff946bc10f96a38045c923a.tar.gz
samba-9b265a68ccf74a03bff946bc10f96a38045c923a.tar.bz2
samba-9b265a68ccf74a03bff946bc10f96a38045c923a.zip
s4-ldif: Fix memory leek in ldb_ldif_write()
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/ldb_ldif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_ldif.c b/source4/lib/ldb/common/ldb_ldif.c
index b7ab7300b2..888761e67b 100644
--- a/source4/lib/ldb/common/ldb_ldif.c
+++ b/source4/lib/ldb/common/ldb_ldif.c
@@ -373,6 +373,8 @@ int ldb_ldif_write(struct ldb_context *ldb,
ret = fprintf_fn(private_data,"\n");
CHECK_RET;
+ talloc_free(mem_ctx);
+
return total;
}