diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-27 13:19:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-27 13:19:33 +0000 |
commit | 9202a9608e38aa372edde168ce0aaaae52d0daef (patch) | |
tree | dceeb775fb16f5efcc1e6fc0417222149e3e1cda /src/datacache/plugin_datacache_postgres.c | |
parent | 4c26b95ce21d754f0270fdb9ed6d26c24c852568 (diff) |
fix
Diffstat (limited to 'src/datacache/plugin_datacache_postgres.c')
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 5 |
1 files changed, 4 insertions, 1 deletions
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))) |