Skip to content

Commit 3736fc0

Browse files
committedFeb 8, 2019
Fix sqlite double free
1 parent ce7b8e2 commit 3736fc0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/providers/spatialite/qgsspatialiteprovider.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5588,8 +5588,6 @@ static bool initializeSpatialMetadata( sqlite3 *sqlite_handle, QString &errCause
55885588

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

5591-
sqlite3_free_table( results );
5592-
55935591
// all right, it's empty: proceeding to initialize
55945592
char *errMsg = nullptr;
55955593
ret = sqlite3_exec( sqlite_handle, above41 ? "SELECT InitSpatialMetadata(1)" : "SELECT InitSpatialMetadata()", nullptr, nullptr, &errMsg );

0 commit comments

Comments
 (0)
Please sign in to comment.