commit 28ca87140129b554b5d77b55f422bddb8880b40a parent 9e191bf65f498e56330c1d7f1213ef6c7b23e07d Author: Evgeny Grin (Karlson2k) <k2k@narod.ru> Date: Tue, 16 May 2017 21:11:46 +0300 Fixed response cleanup regression introduced by e264d9ec9ef98e6f26f5f547ec941927a35ffa56 Diffstat:
| M | src/microhttpd/connection.c | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -3175,7 +3175,11 @@ MHD_connection_handle_idle (struct MHD_Connection *connection) } /* Response is not required anymore for this connection. */ if (NULL != connection->response) - MHD_destroy_response (connection->response); + { + struct MHD_Response const *resp = connection->response; + connection->response = NULL; + MHD_destroy_response (resp); + } continue; } #endif /* UPGRADE_SUPPORT */