auth3: Remove unnecessary talloc_unlink() calls
[bbaumbach/samba-autobuild/.git] / source3 / auth / auth_generic.c
index 4dc2beafa7c12a1f1bc838713a7215889b02d17c..aabb2d1a9992016ebc29cb96bf68bc0e9587aca4 100644 (file)
@@ -362,11 +362,6 @@ NTSTATUS auth_generic_prepare(TALLOC_CTX *mem_ctx,
                }
 
                gensec_set_credentials(gensec_security, server_credentials);
-
-               talloc_unlink(tmp_ctx, lp_ctx);
-               talloc_unlink(tmp_ctx, server_credentials);
-               talloc_unlink(tmp_ctx, gensec_settings);
-               talloc_unlink(tmp_ctx, auth4_context);
        }
 
        nt_status = gensec_set_remote_address(gensec_security,