From 3ea916b2278c202c99c80c02e80e588bd7daedb8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 06:44:08 +0000 Subject: r2654: fixed some more server memory leaks. We are now down to a single leak of 16 bytes, caused by the 16 byte data_blob in the smb_signing code. (This used to be commit 2f1b788e09686e065d22f621f5c0c585192c6740) --- source4/smbd/process_standard.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/smbd') diff --git a/source4/smbd/process_standard.c b/source4/smbd/process_standard.c index 194c6d24cc..a587278b8e 100644 --- a/source4/smbd/process_standard.c +++ b/source4/smbd/process_standard.c @@ -97,6 +97,10 @@ static void standard_terminate_connection(struct server_connection *conn, const talloc_free(conn->service->srv_ctx); } + /* this init_iconv() has the effect of freeing the iconv context memory, + which makes leak checking easier */ + init_iconv(); + /* terminate this process */ exit(0); } -- cgit