Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix sqlite double free
  • Loading branch information
elpaso committed Feb 8, 2019
1 parent ce7b8e2 commit 3736fc0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 3736fc0

Please sign in to comment.