From 9202a9608e38aa372edde168ce0aaaae52d0daef Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 27 Aug 2010 13:19:33 +0000 Subject: fix --- src/datacache/plugin_datacache_postgres.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/datacache/plugin_datacache_postgres.c') diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 50d464a70c..fcd9e51613 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))) -- cgit v1.2.3-70-g09d2