mirror of
https://github.com/samba-team/samba.git
synced 2025-11-27 08:23:49 +03:00
r2627: use the new talloc capabilities in a bunch more places in the rpc
server code. This fixes a number of memory leaks I found when testing with valgrind and smbtorture, as the cascading effect of a talloc_free() ensures that anything derived from the top level object is destroyed on disconnect.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
458f853288
commit
76d0b8206c
@@ -208,7 +208,7 @@ void dcesrv_tcp_close(struct server_connection *conn, const char *reason)
|
||||
|
||||
DEBUG(5,("dcesrv_tcp_close: %s\n",reason));
|
||||
|
||||
talloc_destroy(dce_conn->mem_ctx);
|
||||
talloc_free(dce_conn);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user