1
0
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:
Andrew Tridgell
2004-09-25 11:24:10 +00:00
committed by Gerald (Jerry) Carter
parent 458f853288
commit 76d0b8206c
11 changed files with 64 additions and 94 deletions

View File

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