Mercurial > dovecot > core-2.2
changeset 18494:63224afb8c02
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.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Sat, 25 Apr 2015 11:42:06 +0200 |
parents | 092a51d80bad |
children | 9024d226b813 |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }