aboutsummaryrefslogtreecommitdiff
path: root/src/pq
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-07 16:58:43 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-07 16:58:43 +0100
commit4bcfd0476d3074a93e880320951345d8a9435838 (patch)
tree95f4cff6f59c6cb998d84817729aae663c8ecae4 /src/pq
parent27ca93e0dbd2552835d7046dd0ee1ab3c2c83f47 (diff)
downloadgnunet-4bcfd0476d3074a93e880320951345d8a9435838.tar.gz
gnunet-4bcfd0476d3074a93e880320951345d8a9435838.zip
do not run cleaner on part that was never setup
Diffstat (limited to 'src/pq')
-rw-r--r--src/pq/pq.c5
1 files changed, 4 insertions, 1 deletions
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,
168 spec->dst); 168 spec->dst);
169 if (GNUNET_OK != ret) 169 if (GNUNET_OK != ret)
170 { 170 {
171 GNUNET_PQ_cleanup_result (rs); 171 for (unsigned int j = 0; j < i; j++)
172 if (NULL != rs[j].cleaner)
173 rs[j].cleaner (rs[j].cls,
174 rs[j].dst);
172 return GNUNET_SYSERR; 175 return GNUNET_SYSERR;
173 } 176 }
174 if (NULL != spec->result_size) 177 if (NULL != spec->result_size)