about summary refs log tree commit diff
path: root/src/libstore/db.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T16·36+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T16·36+0000
commitd822bf32e470e46a3634638fee3c4b1472d2cd26 (patch)
tree031d79cc5f4bd420d3a601ab8de923d351b59766 /src/libstore/db.cc
parentfa95f4be3f4df6ebe4d49ec57a66129f645e36c7 (diff)
* Close the database before the destructor runs.
Diffstat (limited to 'src/libstore/db.cc')
-rw-r--r--src/libstore/db.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/db.cc b/src/libstore/db.cc
index 448b70e6ccbc..667951ae7b84 100644
--- a/src/libstore/db.cc
+++ b/src/libstore/db.cc
@@ -278,6 +278,8 @@ void Database::close()
     } catch (DbException e) { rethrow(e); }
 
     delete env;
+
+    env = 0;
 }