mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-19 17:01:15 +03:00
Fix leak context count reporting.
Fix a bug in leak context count reporting that tended to cause the number of contexts to be underreported. The reported number of leaked objects and bytes were not affected by this bug.
This commit is contained in:
parent
588a32cd84
commit
9ce3bfd92d
1 changed files with 3 additions and 3 deletions
|
|
@ -999,11 +999,11 @@ prof_ctx_sum(prof_ctx_t *ctx, prof_cnt_t *cnt_all, size_t *leak_nctx)
|
|||
ctx->cnt_summed.accumobjs += tcnt.accumobjs;
|
||||
ctx->cnt_summed.accumbytes += tcnt.accumbytes;
|
||||
}
|
||||
|
||||
if (tcnt.curobjs != 0)
|
||||
(*leak_nctx)++;
|
||||
}
|
||||
|
||||
if (ctx->cnt_summed.curobjs != 0)
|
||||
(*leak_nctx)++;
|
||||
|
||||
/* Add to cnt_all. */
|
||||
cnt_all->curobjs += ctx->cnt_summed.curobjs;
|
||||
cnt_all->curbytes += ctx->cnt_summed.curbytes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue