diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-05 10:50:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-05 10:50:24 +0200 |
commit | b8d88b289aca145edbf031adbe904d877d93f3ba (patch) | |
tree | f2d14aee8779344009bac3ad0087ff2dfafe35c7 /common/callback | |
parent | 683eccc6887a7fa34d58e873e19b48405ebf420a (diff) |
Fix memory leak
Diffstat (limited to 'common/callback')
-rw-r--r-- | common/callback/driver.cxx | 2 |
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 (); } } |