mattn/go-sqlite3 — pull request #24 by jgallagher (2012-10-16 01:00:12+00:00)
Title: Fix invalid memory read in Close()

After calling sqlite3_finalize(s), it isn't safe to pass s into sqlite3_next_stmt() on the next line. When running under valgrind on Linux, this shows up as an invalid memory read.