Fix refcount_debug_context_count_object
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user