mirror of
https://github.com/samba-team/samba.git
synced 2025-10-28 03:33:13 +03:00
r67: added a destroy hook in the policy handle -> wire handle code to allow backends
to cleanup handle data
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
f88f1d3361
commit
af0c21c1e1
@@ -315,9 +315,7 @@ void dcesrv_endpoint_disconnect(struct dcesrv_connection *p)
|
||||
|
||||
/* destroy any handles */
|
||||
while (p->handles) {
|
||||
TALLOC_CTX *m = p->handles->mem_ctx;
|
||||
DLIST_REMOVE(p->handles, p->handles);
|
||||
talloc_destroy(m);
|
||||
dcesrv_handle_destroy(p, p->handles);
|
||||
}
|
||||
|
||||
talloc_destroy(p->mem_ctx);
|
||||
|
||||
Reference in New Issue
Block a user