r4359: using talloc_free() of a child struct in a talloc_destructor is useless
authorStefan Metzmacher <metze@samba.org>
Sat, 25 Dec 2004 14:01:19 +0000 (14:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:38 +0000 (13:07 -0500)
metze
(This used to be commit e51f2cf43f2cbcf3c3bbb00abc99f1bddb9f7f35)

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);
        }
 
                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;
 }
 
        return 0;
 }