mirror of
https://github.com/samba-team/samba.git
synced 2025-10-22 07:33:16 +03:00
r6192: remove handle->destroy function pointer, this should be done by talloc destructors now
metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e66aa87f14
commit
862226f557
@@ -30,9 +30,6 @@
|
||||
static int dcesrv_handle_destructor(void *ptr)
|
||||
{
|
||||
struct dcesrv_handle *h = ptr;
|
||||
if (h->destroy) {
|
||||
h->destroy(h->context, h);
|
||||
}
|
||||
DLIST_REMOVE(h->context->handles, h);
|
||||
talloc_free(h);
|
||||
return 0;
|
||||
@@ -52,7 +49,6 @@ struct dcesrv_handle *dcesrv_handle_new(struct dcesrv_connection_context *contex
|
||||
return NULL;
|
||||
}
|
||||
h->data = NULL;
|
||||
h->destroy = NULL;
|
||||
h->context = context;
|
||||
|
||||
h->wire_handle.handle_type = handle_type;
|
||||
|
Reference in New Issue
Block a user