From: Stephan Bosch Date: Tue, 12 Apr 2016 09:42:38 +0000 (+0200) Subject: lib-http: server: Fixed bug in request reference counting caused by earlier fix ... X-Git-Tag: 2.2.24~85 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1ffc40b4f729867c209ed02bf42b08a7a5e7ec5;p=thirdparty%2Fdovecot%2Fcore.git lib-http: server: Fixed bug in request reference counting caused by earlier fix (390b600a6f7fdb4ccc65950527ee30129f49a6ac). The earlier change erroneously dropped two lines that unreferenced the request object after calling the callback. --- diff --git a/src/lib-http/http-server-connection.c b/src/lib-http/http-server-connection.c index c80bfa3b96..94713e6805 100644 --- a/src/lib-http/http-server-connection.c +++ b/src/lib-http/http-server-connection.c @@ -602,6 +602,8 @@ static void http_server_connection_input(struct connection *_conn) conn->close_indicated = TRUE; if (req->destroy_pending) http_server_request_destroy(&req); + else + http_server_request_unref(&req); if (conn->closed) { /* connection got closed in destroy callback */