diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-11 15:07:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-11 15:07:20 +0200 |
commit | b60dff7d31394304177b9790656ae80562cd647e (patch) | |
tree | 6a3e78c46b7fb33835eda27d9f515378825ccfef | |
parent | 0ea92f732f705adb84b2fd1c98b405d0277201af (diff) |
Free deallocate query result
-rw-r--r-- | odb/pgsql/statement.cxx | 3 |
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; } |