summaryrefslogtreecommitdiff
path: root/src/database/postgresql_statement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/postgresql_statement.hpp')
-rw-r--r--src/database/postgresql_statement.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/postgresql_statement.hpp b/src/database/postgresql_statement.hpp
index 6e5dec8..30c3ec2 100644
--- a/src/database/postgresql_statement.hpp
+++ b/src/database/postgresql_statement.hpp
@@ -14,7 +14,10 @@ class PostgresqlStatement: public Statement
conn(conn)
{}
~PostgresqlStatement()
- {}
+ {
+ PQclear(this->result);
+ this->result = nullptr;
+ }
PostgresqlStatement(const PostgresqlStatement&) = delete;
PostgresqlStatement& operator=(const PostgresqlStatement&) = delete;
PostgresqlStatement(PostgresqlStatement&& other) = delete;