Merge pull request #24 from jgallagher/master

Fix invalid memory read in Close()
This commit is contained in:
mattn 2012-10-15 19:49:08 -07:00
commit 629fe17ada
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ func (c *SQLiteConn) Close() error {
s := C.sqlite3_next_stmt(c.db, nil)
for s != nil {
C.sqlite3_finalize(s)
s = C.sqlite3_next_stmt(c.db, s)
s = C.sqlite3_next_stmt(c.db, nil)
}
rv := C.sqlite3_close(c.db)
if rv != C.SQLITE_OK {