From 4e0cf0bee33ff0780e86173e85612f1af1e03394 Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Wed, 22 Jan 2025 01:42:04 +0530 Subject: [PATCH] Print ref count --- mem/buffers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mem/buffers.go b/mem/buffers.go index 07714a8a10b0..1e3d696cbcd5 100644 --- a/mem/buffers.go +++ b/mem/buffers.go @@ -180,7 +180,7 @@ func (b *buffer) Free() { b.freeCallers = nil bufferObjectPool.Put(b) default: - op := "Free callers" + op := fmt.Sprintf("refCount: %d\nFree callers", refs) for _, c := range b.freeCallers { op = op + "\n\n" + c }