From aee7bbd414f4c3da9da5fec8892e12ecfd1cb900 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 13 Sep 2011 07:48:31 +0000 Subject: for Regis (see ML) --- ChangeLog | 3 +++ src/daemon/connection.c | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 826d4c59..1e2a970e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Tue Sep 13 09:47:58 CEST 2011 + Try to release responses more promptly upon connection termination. -CG + Mon Sep 12 10:20:28 CEST 2011 Releasing libmicrohttpd 0.9.14. -CG diff --git a/src/daemon/connection.c b/src/daemon/connection.c index 2a7fb261..c02e87cd 100644 --- a/src/daemon/connection.c +++ b/src/daemon/connection.c @@ -316,6 +316,11 @@ MHD_connection_close (struct MHD_Connection *connection, MHD_destroy_response (pos->response); pos->response = NULL; } + if (pos->response != NULL) + { + MHD_destroy_response (pos->response); + pos->response = NULL; + } } -- cgit v1.2.3