gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5348 - GNUnet/src/applications/sqstore_mysql


From: gnunet
Subject: [GNUnet-SVN] r5348 - GNUnet/src/applications/sqstore_mysql
Date: Mon, 23 Jul 2007 14:23:41 -0600 (MDT)

Author: grothoff
Date: 2007-07-23 14:23:40 -0600 (Mon, 23 Jul 2007)
New Revision: 5348

Modified:
   GNUnet/src/applications/sqstore_mysql/mysql.c
Log:
leak

Modified: GNUnet/src/applications/sqstore_mysql/mysql.c
===================================================================
--- GNUnet/src/applications/sqstore_mysql/mysql.c       2007-07-23 07:02:56 UTC 
(rev 5347)
+++ GNUnet/src/applications/sqstore_mysql/mysql.c       2007-07-23 20:23:40 UTC 
(rev 5348)
@@ -614,6 +614,7 @@
   if (OK != CHECK_DBH)
     {
       MUTEX_UNLOCK (lock);
+      FREE(datum);
       return NULL;
     }
   GE_ASSERT (ectx, mysql_stmt_param_count (dbh->select_value) == 1);
@@ -965,8 +966,10 @@
             ret = OK;
           else
             ret = iter (&key, datum, closure, vkey);
-          if (ret == SYSERR)
+          if (ret == SYSERR) {
+           FREE(datum);
             break;
+         }
           if (ret == NO)
             {
               MUTEX_LOCK (lock);
@@ -1227,8 +1230,10 @@
         continue;
       count++;
       ret = iter (&key, datum, closure, vkey);
-      if (ret == SYSERR)
+      if (ret == SYSERR) {
+       FREE(datum);
         break;
+      }
       if (ret == NO)
         {
           MUTEX_LOCK (lock);





reply via email to

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