summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorauxten <auxten@users.noreply.github.com>2023-05-03 22:34:30 +0800
committerQi Wang <interwq@gmail.com>2023-05-10 17:18:22 -0700
commit5bac384970a8224daee0b07475950a5291fc37d3 (patch)
tree9a65ec8a63daa99be77252e8b46199882635172a
parent019cccc293f96c9f7886373d816aab061f65f7de (diff)
downloadjemalloc-5bac384970a8224daee0b07475950a5291fc37d3.tar.gz
If ptr present check if alloc_ctx.edata == NULL
-rw-r--r--src/ctl.c2
1 files changed, 1 insertions, 1 deletions
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;
}