r13258: Fix the talloc heirachy for ldb_tdb.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 31 Jan 2006 11:16:43 +0000 (11:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:39 +0000 (13:51 -0500)
commitb60415745a0038dbfdca752861201fba0d942ff6
tree3d4f30b520a7c48241c37d0f95d1ab30e473d89a
parentf9316daa4697bea13d2795c95a1486119de56e67
r13258: Fix the talloc heirachy for ldb_tdb.

In the return value res->msgs, msgs was not a child of res, in the
indexed path.  Instead, it hung directly off the ldb, which was
sometimes a long-term context.

Also remove unused parameters.

Found by --leak-report-full

Andrew Bartlett
(This used to be commit 29cb5af827c459758997c80dca034d471bb92449)
source4/lib/ldb/ldb_tdb/ldb_index.c
source4/lib/ldb/ldb_tdb/ldb_search.c
source4/lib/ldb/ldb_tdb/ldb_tdb.h