Skip to content

Commit

Permalink
fix infinite loop
Browse files Browse the repository at this point in the history
Signed-off-by: Vicent Marti <vmg@strn.cat>
  • Loading branch information
vmg committed Nov 18, 2024
1 parent 34ee12c commit 03e10d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/mysql/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func (pool *membufpool) Get(length int) *[]byte {
}

func (pool *membufpool) Put(b *[]byte) {
pool.Put(b)
pool.pool.Put(b)
}

var defaultMembufPool = membufpool{sync.Pool{New: func() any {
Expand Down

0 comments on commit 03e10d7

Please sign in to comment.