From b86cbfad60732e76b3844037634101d0c030c9c1 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Tue, 9 Sep 2025 14:24:59 -0700 Subject: [PATCH] Fix refcount_debug_context_count_object --- src/refcount.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/refcount.c b/src/refcount.c index 2292ae9..da9b383 100644 --- a/src/refcount.c +++ b/src/refcount.c @@ -875,6 +875,9 @@ uint64_t refcount_debug_context_count_object(const RefcountContext *ctx, while (queue) { void *cur = queue->data; queue = refcount_list_pop_full(queue, NULL, &ctx->alloc); + if (refcount_context_is_static(ctx, cur)) { + continue; + } // count NULL if (cur == target) { ++total_count;