r2051: switched the samdb over to using the new destructor and reference
authorAndrew Tridgell <tridge@samba.org>
Wed, 25 Aug 2004 06:44:23 +0000 (06:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:58:21 +0000 (12:58 -0500)
commitede02ee03867d2f6582c446fcab0882072baaa5a
treeea7e56a1b9f1552cc9752cf8736084555005518c
parent294f6f16947c56d3fac5b24e5c95e8df522e18d6
r2051: switched the samdb over to using the new destructor and reference
count features of talloc, instead of re-implementing both those
features inside of samdb (which is what we did before).

This makes samdb considerably simpler, and also fixes some bugs, as I
found some error paths that didn't call samdb_close(). Those are now
handled by the fact that a talloc_free() will auto-close and destroy
the samdb context, using a destructor.
(This used to be commit da60987a92266734c33b81ee217081abdc4330f3)
source4/auth/auth_sam.c
source4/rpc_server/lsa/dcesrv_lsa.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/dcesrv_samr.h
source4/rpc_server/samr/samdb.c
source4/rpc_server/samr/samr_password.c