dovecot-2.2: lib-http: client: Fixed memory leak in CONNECT tunn...

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 29 09:22:44 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/63224afb8c02
changeset: 18494:63224afb8c02
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sat Apr 25 11:42:06 2015 +0200
description:
lib-http: client: Fixed memory leak in CONNECT tunnel support.
Forgot to dereference streams once tunnel was completed and passed to the new connection object.

diffstat:

 src/lib-http/http-client-connection.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 092a51d80bad -r 63224afb8c02 src/lib-http/http-client-connection.c
--- a/src/lib-http/http-client-connection.c	Sat Apr 25 11:42:06 2015 +0200
+++ b/src/lib-http/http-client-connection.c	Sat Apr 25 11:42:06 2015 +0200
@@ -1162,6 +1162,8 @@
 
 	connection_init_from_streams
 		(conn->client->conn_list, &conn->conn, name, tunnel.input, tunnel.output);
+	i_stream_unref(&tunnel.input);
+	o_stream_unref(&tunnel.output);
 	conn->connect_initialized = TRUE;
 }
 


More information about the dovecot-cvs mailing list