From d64145383be7a8d47e90499c9ed576d3910ac3fc Mon Sep 17 00:00:00 2001 From: Alien Science Date: Fri, 20 Jan 2012 03:26:09 +0800 Subject: [PATCH] Fixed double free when closing SQLiteStmt Rows should not close the statement because Stmt has its own close function. This caused a double free error/crash on Fedora 16 x86_64. --- sqlite3.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sqlite3.go b/sqlite3.go index 731cf73..6de2123 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -228,10 +228,6 @@ type SQLiteRows struct { } func (rc *SQLiteRows) Close() error { - rv := C.sqlite3_finalize(rc.s.s) - if rv != C.SQLITE_OK { - return errors.New(C.GoString(C.sqlite3_errmsg(rc.s.c.db))) - } return nil }