]> Cypherpunks repositories - gostls13.git/commit
exp/sql: fix statement leak
authorBrad Fitzpatrick <bradfitz@golang.org>
Fri, 13 Jan 2012 23:25:07 +0000 (15:25 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 13 Jan 2012 23:25:07 +0000 (15:25 -0800)
commit1c441e259f66bc2594cb8b0a95bf6cc0847e2bd8
treeb9a6c505a6cd76efe36bbd1db022f9cdb5bba119
parent0575cd9de45215c069ffb15afe11599dcb409f62
exp/sql: fix statement leak

Also verified in external test suite that this fixes MySQL
resource exhaustion problems, and also exposed a double-free
bug in the gosqlite3 driver (where gosqlite3 either got lucky
before, or was working around this bug)

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5544057
src/pkg/exp/sql/fakedb_test.go
src/pkg/exp/sql/sql.go
src/pkg/exp/sql/sql_test.go