diff options
Diffstat (limited to 'source4/smb_server/smb_server.c')
-rw-r--r-- | source4/smb_server/smb_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c index 961cd927ec..d12915957e 100644 --- a/source4/smb_server/smb_server.c +++ b/source4/smb_server/smb_server.c @@ -727,7 +727,7 @@ static void smbsrv_init(struct server_service *service, const struct model_ops * ifip = interpret_addr2(mem_ctx, lp_socket_address()); add_socket(service, model_ops, NULL, ifip); - talloc_destroy(mem_ctx); + talloc_free(mem_ctx); } } @@ -783,7 +783,7 @@ static void smbsrv_close(struct server_connection *conn, const char *reason) conn_close_all(smb_conn); - talloc_destroy(smb_conn->mem_ctx); + talloc_free(smb_conn->mem_ctx); return; } |