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) {
|
while (queue) {
|
||||||
void *cur = queue->data;
|
void *cur = queue->data;
|
||||||
queue = refcount_list_pop_full(queue, NULL, &ctx->alloc);
|
queue = refcount_list_pop_full(queue, NULL, &ctx->alloc);
|
||||||
|
if (refcount_context_is_static(ctx, cur)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// count NULL
|
// count NULL
|
||||||
if (cur == target) {
|
if (cur == target) {
|
||||||
++total_count;
|
++total_count;
|
||||||
|
Reference in New Issue
Block a user