diff --git a/src/storage/backend/sqlite/SQLite.cc b/src/storage/backend/sqlite/SQLite.cc index 2d43b971bf..8df533f2f8 100644 --- a/src/storage/backend/sqlite/SQLite.cc +++ b/src/storage/backend/sqlite/SQLite.cc @@ -332,6 +332,7 @@ OperationResult SQLite::DoClose(ResultCallback* cb) { } expire_db = nullptr; + sqlite3_free(errmsg); } if ( page_count_metric )