summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--database.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/database.h b/database.h
index 810ce94..0494851 100644
--- a/database.h
+++ b/database.h
@@ -132,6 +132,7 @@ static inline void dbClose(void) {
 		free(persist);
 		persist = prev;
 	}
+	dbExec(SQL(PRAGMA optimize;));
 	sqlite3_close(db);
 }