Skip to content

Commit fe8de8b

Browse files
committed
Fix segfault on error'ed mbtiles connection
1 parent cc67bed commit fe8de8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cache_sqlite.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,7 @@ static void _mapcache_cache_mbtiles_multi_set(mapcache_context *ctx, mapcache_ti
749749
}
750750
}
751751
conn = _sqlite_get_conn(ctx, &tiles[0], 0);
752+
GC_CHECK_ERROR(ctx);
752753

753754
sqlite3_exec(conn->handle, "BEGIN TRANSACTION", 0, 0, 0);
754755
for (i = 0; i < ntiles; i++) {

0 commit comments

Comments
 (0)