Skip to content
Permalink
Browse files

Fix sqlite double free

  • Loading branch information
elpaso committed Feb 8, 2019
1 parent ce7b8e2 commit 3736fc078d290841d2b9577964ef8cc30520acb0
Showing with 0 additions and 2 deletions.
  1. +0 −2 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -5588,8 +5588,6 @@ static bool initializeSpatialMetadata( sqlite3 *sqlite_handle, QString &errCause

const bool above41 = QgsSpatiaLiteProvider::versionIsAbove( sqlite_handle, 4, 1 );

sqlite3_free_table( results );

// all right, it's empty: proceeding to initialize
char *errMsg = nullptr;
ret = sqlite3_exec( sqlite_handle, above41 ? "SELECT InitSpatialMetadata(1)" : "SELECT InitSpatialMetadata()", nullptr, nullptr, &errMsg );

0 comments on commit 3736fc0

Please sign in to comment.
You can’t perform that action at this time.