From 888458d434b24ad5669a5b3b148059fe05dfcb75 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 16 Oct 2006 09:28:39 +0000 Subject: r19323: fixed a leak in the ldif parse code (This used to be commit 06387e1cf2d12a74e15a6cdf19e83a28c75cb5fd) --- source4/lib/ldb/common/ldb_ldif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib/ldb/common') 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; -- cgit