r19323: fixed a leak in the ldif parse code
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 Oct 2006 09:28:39 +0000 (09:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:08 +0000 (14:21 -0500)
(This used to be commit 06387e1cf2d12a74e15a6cdf19e83a28c75cb5fd)

source4/lib/ldb/common/ldb_ldif.c

index ed76ceec76f78d6c7be21e263d6ccd20372084b9..4992eb01ad66d9b22b5fcea87ac2713ee1199e6a 100644 (file)
@@ -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;