forked from mirror/go-sqlite3
Fix read of invalid (already freed) memory.
This commit is contained in:
parent
b9ff6f3fd3
commit
a76fd8f336
|
@ -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