diff options
Diffstat (limited to 'source4/smbd/service.c')
-rw-r--r-- | source4/smbd/service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smbd/service.c b/source4/smbd/service.c index d225a69b17..c90792e452 100644 --- a/source4/smbd/service.c +++ b/source4/smbd/service.c @@ -247,8 +247,11 @@ void server_terminate_connection(struct server_connection *srv_conn, const char void server_destroy_connection(struct server_connection *srv_conn) { close(srv_conn->event.fde->fd); + event_remove_fd(srv_conn->event.ctx, srv_conn->event.fde); event_remove_timed(srv_conn->event.ctx, srv_conn->event.idle); + + talloc_destroy(srv_conn->mem_ctx); } void server_io_handler(struct event_context *ev, struct fd_event *fde, time_t t, uint16_t flags) |