summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Springmeyer <dane@mapbox.com>2019-08-15 13:48:45 -0700
committerDane Springmeyer <dane@mapbox.com>2019-08-15 13:48:45 -0700
commit0e8a9e9903242305192f97c4f99289608870ea79 (patch)
tree83c9beab341829f0a8a8be27d0863afe7555d090
parent53e11104dd226329ff14062e0c10d7240e836649 (diff)
downloadqtlocation-mapboxgl-0e8a9e9903242305192f97c4f99289608870ea79.tar.gz
fix leak in sqlite3 usage
-rw-r--r--test/src/mbgl/test/sqlite3_test_fs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/src/mbgl/test/sqlite3_test_fs.cpp b/test/src/mbgl/test/sqlite3_test_fs.cpp
index e4f958c900..068ae9e1cf 100644
--- a/test/src/mbgl/test/sqlite3_test_fs.cpp
+++ b/test/src/mbgl/test/sqlite3_test_fs.cpp
@@ -278,6 +278,7 @@ SQLite3TestFS::~SQLite3TestFS() {
sqlite3_vfs* test_fs = sqlite3_vfs_find("test_fs");
if (test_fs) {
sqlite3_vfs_unregister(test_fs);
+ sqlite3_free((void*)test_fs);
}
}