diff --git a/table/builder.go b/table/builder.go index 9eb553e2c..70599866c 100644 --- a/table/builder.go +++ b/table/builder.go @@ -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() } }