forked from mirror/go-sqlcipher
Merge pull request #24 from jgallagher/master
Fix invalid memory read in Close()
This commit is contained in:
commit
629fe17ada
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue