aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-11 15:07:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-11 15:07:20 +0200
commitb60dff7d31394304177b9790656ae80562cd647e (patch)
tree6a3e78c46b7fb33835eda27d9f515378825ccfef
parent0ea92f732f705adb84b2fd1c98b405d0277201af (diff)
Free deallocate query result
-rw-r--r--odb/pgsql/statement.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/pgsql/statement.cxx b/odb/pgsql/statement.cxx
index b06646e..e9497df 100644
--- a/odb/pgsql/statement.cxx
+++ b/odb/pgsql/statement.cxx
@@ -47,7 +47,8 @@ namespace odb
string s ("deallocate ");
s += name_;
- PQexec (conn_.handle (), s.c_str ());
+
+ result_ptr r (PQexec (conn_.handle (), s.c_str ()));
deallocated_ = true;
}