diff --git a/pkg/sql/colexec/colexecutils/spilling_buffer_test.go b/pkg/sql/colexec/colexecutils/spilling_buffer_test.go index 07cc0978ce43..3488ff82fcbc 100644 --- a/pkg/sql/colexec/colexecutils/spilling_buffer_test.go +++ b/pkg/sql/colexec/colexecutils/spilling_buffer_test.go @@ -122,6 +122,7 @@ func TestSpillingBuffer(t *testing.T) { spillingQueueUnlimitedAllocator, memoryLimit, queueCfg, colexecop.NewTestingSemaphore(2), typs, testDiskAcc, testMemAcc, colsToStore..., ) + defer buf.Close(ctx) if setInMemTuplesLimit { buf.testingKnobs.maxTuplesStoredInMemory = numBatches * inputBatchSize / 2 }