commit aee7bbd414f4c3da9da5fec8892e12ecfd1cb900 parent 1e2bfba0914a0e85a736552f813875a8415c46dc Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 13 Sep 2011 07:48:31 +0000 for Regis (see ML) Diffstat:
| M | ChangeLog | | | 3 | +++ |
| M | src/daemon/connection.c | | | 5 | +++++ |
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git 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 @@ -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; + } }