Skip to content

Commit

Permalink
Fix slicepool usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim Jarif committed Mar 2, 2020
1 parent a6e6de8 commit f6505bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion table/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ func (b *Builder) handleBlock() {
// Write the processed block to the original block buffer.
bb.buf.Write(blockBuf)

slicePool.Put(dst)
if dst != nil {
slicePool.Put(dst)
}
bb.wg.Done()
}
}
Expand Down

0 comments on commit f6505bf

Please sign in to comment.