aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorAlien Science <saul@alienscience.org.uk>2012-01-19 20:26:09 +0100
committerAlien Science <saul@alienscience.org.uk>2012-01-19 20:26:09 +0100
commit5d9fdcab9300de16c24a5fe2c4286b074096fb94 (patch)
tree0c2dc21de53691ac1bc2511717c428b76ad46b56 /sqlite3.go
parentMerge pull request #2 from lye/master (diff)
downloadgolite-5d9fdcab9300de16c24a5fe2c4286b074096fb94.tar.gz
golite-5d9fdcab9300de16c24a5fe2c4286b074096fb94.tar.xz
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.
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go4
1 files changed, 0 insertions, 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
}