commit 43886eea41a5ff04d14b9eaec11f7b21f397f96d parent 67ecb45b53a188b4060f0ce244e0cf8b52162b9a Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 14 Aug 2010 13:10:44 +0000 fixing potential leak Diffstat:
| M | src/daemon/daemon.c | | | 2 | +- |
| M | src/daemon/response.c | | | 1 | + |
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -1731,7 +1731,7 @@ MHD_start_daemon_va (unsigned int options, CLOSE (socket_fd); return NULL; } - else if (retVal->worker_pool_size > 0) + if (retVal->worker_pool_size > 0) { #ifndef MINGW int sk_flags; diff --git a/src/daemon/response.c b/src/daemon/response.c @@ -307,6 +307,7 @@ MHD_create_response_from_data (size_t size, tmp = malloc (size); if (tmp == NULL) { + pthread_mutex_destroy (&retVal->mutex); free (retVal); return NULL; }