Skip to content

Commit

Permalink
[ISSUE #752] change argument to pointer-like to avoid allocations
Browse files Browse the repository at this point in the history
Signed-off-by: xuweiwei <[email protected]>
  • Loading branch information
victory460 authored Dec 15, 2021
1 parent 35c9a53 commit 82dcf51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitive/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func GetHeader() []byte {
}

func BackHeader(d []byte) {
headerPool.Put(d)
headerPool.Put(&d)
}

func GetBuffer() *bytes.Buffer {
Expand Down

0 comments on commit 82dcf51

Please sign in to comment.