about summary refs log tree commit diff
path: root/src/libstore/sqlite.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/sqlite.cc')
-rw-r--r--src/libstore/sqlite.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc
index 77fbedd119c7..f93fa0857588 100644
--- a/src/libstore/sqlite.cc
+++ b/src/libstore/sqlite.cc
@@ -73,6 +73,11 @@ SQLiteStmt::Use::Use(SQLiteStmt & stmt)
     sqlite3_reset(stmt);
 }
 
+SQLiteStmt::Use::~Use()
+{
+    sqlite3_reset(stmt);
+}
+
 SQLiteStmt::Use & SQLiteStmt::Use::operator () (const std::string & value, bool notNull)
 {
     if (notNull) {