Code

postgresql plugin: Added another missing call to PQclear().
authorSebastian Harl <sh@tokkee.org>
Tue, 14 Oct 2008 10:57:21 +0000 (12:57 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 16 Oct 2008 08:28:59 +0000 (10:28 +0200)
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/postgresql.c

index 90e9f5db606ddcec80868e2225d8051f113221f4..faad16cd9b02b404c5326279bd8fa1aa85e64624 100644 (file)
@@ -428,6 +428,7 @@ static int c_psql_exec_query (c_psql_database_t *db, int idx)
                log_err ("SQL query returned wrong number of fields "
                                "(expected: %i, got: %i)", query->cols_num, cols);
                log_info ("SQL query was: %s", query->query);
+               PQclear (res);
                return -1;
        }