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)
committerStefan Metzmacher <metze@sernet.de>
Fri, 8 Feb 2008 15:09:19 +0000 (16:09 +0100)
source/lib/ldb/common/ldb_ldif.c

index 0ee86a79665c35a6e4056542b7c88f5c96f9a382..5c59d0b8a23ba937af38aa4eae4c6b6cc273240d 100644 (file)
@@ -577,6 +577,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;