From: Andrew Tridgell Date: Mon, 16 Oct 2006 09:08:43 +0000 (+0000) Subject: r19322: fix a minor memory leak in the ltdb cache code X-Git-Tag: samba-4.0.0alpha6~801^3~4479 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f00bee3dcc8eeb5505dc70f6b4e1baaad8ca683;p=thirdparty%2Fsamba.git r19322: fix a minor memory leak in the ltdb cache code (This used to be commit e03ed5822a690e2d151107f2edb9b4f1d3a1e1b9) --- diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c index a6092c45f93..a98b5d82573 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;