mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-02 04:02:18 +03:00
fixing potential leak
This commit is contained in:
1 parent
67ecb45b53
commit
43886eea41
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user