aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-07-05 10:50:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-07-05 10:50:24 +0200
commitb8d88b289aca145edbf031adbe904d877d93f3ba (patch)
treef2d14aee8779344009bac3ad0087ff2dfafe35c7
parent683eccc6887a7fa34d58e873e19b48405ebf420a (diff)
Fix memory leak
-rw-r--r--common/callback/driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/callback/driver.cxx b/common/callback/driver.cxx
index 2934737..9ffad22 100644
--- a/common/callback/driver.cxx
+++ b/common/callback/driver.cxx
@@ -147,6 +147,8 @@ main (int argc, char* argv[])
{
transaction t (db->begin ());
auto_ptr<object> o1 (db->load<object> (1));
+ delete o1->pobj->pobj;
+ delete o1->pobj;
t.commit ();
}
}