gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] branch master updated: do not run cleaner on part that was neve


From: gnunet
Subject: [gnunet] branch master updated: do not run cleaner on part that was never setup
Date: Sat, 07 Dec 2019 17:01:41 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 4bcfd0476 do not run cleaner on part that was never setup
4bcfd0476 is described below

commit 4bcfd0476d3074a93e880320951345d8a9435838
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Dec 7 16:58:43 2019 +0100

    do not run cleaner on part that was never setup
---
 src/my/my.c | 5 ++++-
 src/pq/pq.c | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/my/my.c b/src/my/my.c
index 41d280d5e..a4099d088 100644
--- a/src/my/my.c
+++ b/src/my/my.c
@@ -237,7 +237,10 @@ GNUNET_MY_extract_result (struct 
GNUNET_MYSQL_StatementHandle *sh,
                       "Post-conversion for MySQL result failed at offset %u\n",
                       i);
           mysql_stmt_free_result (stmt);
-          GNUNET_MY_cleanup_result (rs);
+          for (unsigned int j = 0; j < i; j++)
+            if (NULL != rs[j].cleaner)
+              rs[j].cleaner (rs[j].cls,
+                             rs[j].dst);
           return GNUNET_SYSERR;
         }
       field_off += rp->num_fields;
diff --git a/src/pq/pq.c b/src/pq/pq.c
index d2b9a6174..eca097e58 100644
--- a/src/pq/pq.c
+++ b/src/pq/pq.c
@@ -168,7 +168,10 @@ GNUNET_PQ_extract_result (PGresult *result,
                       spec->dst);
     if (GNUNET_OK != ret)
     {
-      GNUNET_PQ_cleanup_result (rs);
+      for (unsigned int j = 0; j < i; j++)
+        if (NULL != rs[j].cleaner)
+          rs[j].cleaner (rs[j].cls,
+                         rs[j].dst);
       return GNUNET_SYSERR;
     }
     if (NULL != spec->result_size)

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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