r4359: using talloc_free() of a child struct in a talloc_destructor is useless
[samba.git] / source4 / rpc_server / dcerpc_server.c
index cf4ea8bea8f1e7687e5a8315444eb3c613ce64da..c53036b45b7261d057c043e7054c7ca0f2e6c420 100644 (file)
@@ -273,11 +273,6 @@ static int dcesrv_endpoint_destructor(void *ptr)
                dcesrv_handle_destroy(p, p->handles);
        }
 
-       if (p->auth_state.gensec_security) {
-               talloc_free(p->auth_state.gensec_security);
-               p->auth_state.gensec_security = NULL;
-       }
-
        return 0;
 }