fixing potential leak

This commit is contained in:
Christian Grothoff committed 2010-08-14 13:10:44 +00:00
1 parent 67ecb45b53
commit 43886eea41
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -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;
+1
View File
@@ -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;
}