s3: Remove talloc_autofree_context from pdb_interface
authorVolker Lendecke <vl@samba.org>
Sat, 2 Oct 2010 21:38:33 +0000 (23:38 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 3 Oct 2010 08:45:56 +0000 (10:45 +0200)
None of the pdb backends have special destructors that need to be run at
program exit.

source3/passdb/pdb_interface.c

index 11b70f2bcb77014ff32ffcb1971037ad3fca8988..e57ee7bbfe08fe418a1dc19d6d3e508edcb9a0b6 100644 (file)
@@ -2110,7 +2110,7 @@ NTSTATUS make_pdb_method( struct pdb_methods **methods )
 {
        /* allocate memory for the structure as its own talloc CTX */
 
-       *methods = talloc_zero(talloc_autofree_context(), struct pdb_methods);
+       *methods = talloc_zero(NULL, struct pdb_methods);
        if (*methods == NULL) {
                return NT_STATUS_NO_MEMORY;
        }