summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-10-16 09:28:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:08 -0500
commit888458d434b24ad5669a5b3b148059fe05dfcb75 (patch)
treecb777aed3e2e6131e1b15d998f41c0f81c3401ed
parent7f00bee3dcc8eeb5505dc70f6b4e1baaad8ca683 (diff)
downloadsamba-888458d434b24ad5669a5b3b148059fe05dfcb75.tar.gz
samba-888458d434b24ad5669a5b3b148059fe05dfcb75.tar.bz2
samba-888458d434b24ad5669a5b3b148059fe05dfcb75.zip
r19323: fixed a leak in the ldif parse code
(This used to be commit 06387e1cf2d12a74e15a6cdf19e83a28c75cb5fd)
-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 ed76ceec76..4992eb01ad 100644
--- a/source4/lib/ldb/common/ldb_ldif.c
+++ b/source4/lib/ldb/common/ldb_ldif.c
@@ -550,6 +550,7 @@ struct ldb_ldif *ldb_ldif_read(struct ldb_context *ldb,
if (!chunk) {
goto failed;
}
+ talloc_steal(ldif, chunk);
msg->private_data = chunk;
s = chunk;