gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12524 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r12524 - libmicrohttpd/src/daemon
Date: Sat, 14 Aug 2010 15:10:45 +0200

Author: grothoff
Date: 2010-08-14 15:10:44 +0200 (Sat, 14 Aug 2010)
New Revision: 12524

Modified:
   libmicrohttpd/src/daemon/daemon.c
   libmicrohttpd/src/daemon/response.c
Log:
fixing potential leak

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2010-08-14 13:04:35 UTC (rev 12523)
+++ libmicrohttpd/src/daemon/daemon.c   2010-08-14 13:10:44 UTC (rev 12524)
@@ -1731,7 +1731,7 @@
       CLOSE (socket_fd);
       return NULL;
     }
-  else if (retVal->worker_pool_size > 0)
+  if (retVal->worker_pool_size > 0)
     {
 #ifndef MINGW
       int sk_flags;

Modified: libmicrohttpd/src/daemon/response.c
===================================================================
--- libmicrohttpd/src/daemon/response.c 2010-08-14 13:04:35 UTC (rev 12523)
+++ libmicrohttpd/src/daemon/response.c 2010-08-14 13:10:44 UTC (rev 12524)
@@ -307,6 +307,7 @@
       tmp = malloc (size);
       if (tmp == NULL)
         {
+         pthread_mutex_destroy (&retVal->mutex);
           free (retVal);
           return NULL;
         }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]