From 0b3b5e2ef28d38b225adc9c7f5a43f6d2eed7b5a Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Fri, 11 Jul 2025 22:38:21 -0700 Subject: [PATCH] Fix a potential memory leak reported by Coverity --- src/storage/backend/sqlite/SQLite.cc | 1 + 1 file changed, 1 insertion(+) 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 )