r19322: fix a minor memory leak in the ltdb cache code
authorAndrew Tridgell <tridge@samba.org>
Mon, 16 Oct 2006 09:08:43 +0000 (09:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:21:08 +0000 (14:21 -0500)
(This used to be commit e03ed5822a690e2d151107f2edb9b4f1d3a1e1b9)

source4/lib/ldb/ldb_tdb/ldb_cache.c

index a6092c45f93c0d0b49009593c0b5a41e48e4ec2b..a98b5d825730903f837b69a13590c1e937ad8210 100644 (file)
@@ -167,6 +167,7 @@ static int ltdb_attributes_load(struct ldb_module *module)
                if (ldb_set_attrib_handlers(module->ldb, &h2, 1) != 0) {
                        goto failed;
                }
+               talloc_steal(module->ldb->schema.attrib_handlers, h2.attr);
        }
 
        return 0;