From: Christian Grothoff Date: Fri, 27 Aug 2010 13:19:33 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~20522 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9202a9608e38aa372edde168ce0aaaae52d0daef;p=oweals%2Fgnunet.git fix --- diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 50d464a70..fcd9e5161 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c @@ -408,7 +408,10 @@ postgres_plugin_get (void *cls, return 0; } if (iter == NULL) - return cnt; + { + PQclear (res); + return cnt; + } if ( (3 != PQnfields (res)) || (sizeof (uint64_t) != PQfsize (res, 0)) || (sizeof (uint32_t) != PQfsize (res, 1)))