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 | |
parent | 4c26b95ce21d754f0270fdb9ed6d26c24c852568 (diff) | |
download | gnunet-9202a9608e38aa372edde168ce0aaaae52d0daef.tar.gz gnunet-9202a9608e38aa372edde168ce0aaaae52d0daef.zip |
fix
-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 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, | |||
408 | return 0; | 408 | return 0; |
409 | } | 409 | } |
410 | if (iter == NULL) | 410 | if (iter == NULL) |
411 | return cnt; | 411 | { |
412 | PQclear (res); | ||
413 | return cnt; | ||
414 | } | ||
412 | if ( (3 != PQnfields (res)) || | 415 | if ( (3 != PQnfields (res)) || |
413 | (sizeof (uint64_t) != PQfsize (res, 0)) || | 416 | (sizeof (uint64_t) != PQfsize (res, 0)) || |
414 | (sizeof (uint32_t) != PQfsize (res, 1))) | 417 | (sizeof (uint32_t) != PQfsize (res, 1))) |