dovecot-2.2: lib-http: server: Fixed delayed request destruction.

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 10 10:44:29 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/0f1878544d3b
changeset: 17769:0f1878544d3b
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Wed Sep 10 13:39:37 2014 +0300
description:
lib-http: server: Fixed delayed request destruction.
Destruction was actually delayed indefinitely, because the delay flag was not reset.
Obviously, this caused a memory leak.

diffstat:

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

diffs (11 lines):

diff -r 4e339d81e1d2 -r 0f1878544d3b src/lib-http/http-server-connection.c
--- a/src/lib-http/http-server-connection.c	Wed Sep 10 13:39:37 2014 +0300
+++ b/src/lib-http/http-server-connection.c	Wed Sep 10 13:39:37 2014 +0300
@@ -448,6 +448,7 @@
 			T_BEGIN {
 				cont = http_server_connection_handle_request(conn, req);
 			} T_END;
+			req->delay_destroy = FALSE;
 			if (!cont) {
 				/* connection closed or request body not read yet.
 				   the request may be destroyed now. */


More information about the dovecot-cvs mailing list