From 7f00bee3dcc8eeb5505dc70f6b4e1baaad8ca683 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 16 Oct 2006 09:08:43 +0000 Subject: r19322: fix a minor memory leak in the ltdb cache code (This used to be commit e03ed5822a690e2d151107f2edb9b4f1d3a1e1b9) --- source4/lib/ldb/ldb_tdb/ldb_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c index a6092c45f9..a98b5d8257 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_cache.c +++ b/source4/lib/ldb/ldb_tdb/ldb_cache.c @@ -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; -- cgit