diff options
Diffstat (limited to 'src/pq')
-rw-r--r-- | src/pq/pq.c | 5 |
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) |