From 5bac384970a8224daee0b07475950a5291fc37d3 Mon Sep 17 00:00:00 2001 From: auxten Date: Wed, 3 May 2023 22:34:30 +0800 Subject: [PATCH] If ptr present check if alloc_ctx.edata == NULL --- src/ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctl.c b/src/ctl.c index e7d6529e..c495ecf6 100644 --- a/src/ctl.c +++ b/src/ctl.c @@ -3225,7 +3225,7 @@ arenas_lookup_ctl(tsd_t *tsd, const size_t *mib, WRITE(ptr, void *); ptr_not_present = emap_full_alloc_ctx_try_lookup(tsd_tsdn(tsd), &arena_emap_global, ptr, &alloc_ctx); - if (ptr_not_present) { + if (ptr_not_present || alloc_ctx.edata == NULL) { goto label_return; }