1
0
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:
Andrew Tridgell
2004-04-06 08:07:07 +00:00
committed by Gerald (Jerry) Carter
parent f88f1d3361
commit af0c21c1e1
3 changed files with 6 additions and 3 deletions

View File

@@ -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);