mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Fix the sized-dealloc safety check abort msg.
This commit is contained in:
@@ -425,8 +425,8 @@ maybe_check_alloc_ctx(tsd_t *tsd, void *ptr, emap_alloc_ctx_t *alloc_ctx) {
|
|||||||
if (alloc_ctx->szind != dbg_ctx.szind) {
|
if (alloc_ctx->szind != dbg_ctx.szind) {
|
||||||
safety_check_fail_sized_dealloc(
|
safety_check_fail_sized_dealloc(
|
||||||
/* current_dealloc */ true, ptr,
|
/* current_dealloc */ true, ptr,
|
||||||
/* true_size */ sz_size2index(dbg_ctx.szind),
|
/* true_size */ sz_index2size(dbg_ctx.szind),
|
||||||
/* input_size */ sz_size2index(alloc_ctx->szind));
|
/* input_size */ sz_index2size(alloc_ctx->szind));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (alloc_ctx->slab != dbg_ctx.slab) {
|
if (alloc_ctx->slab != dbg_ctx.slab) {
|
||||||
|
|||||||
Reference in New Issue
Block a user