diff options
author | auxten <auxten@users.noreply.github.com> | 2023-05-03 22:34:30 +0800 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2023-05-10 17:18:22 -0700 |
commit | 5bac384970a8224daee0b07475950a5291fc37d3 (patch) | |
tree | 9a65ec8a63daa99be77252e8b46199882635172a | |
parent | 019cccc293f96c9f7886373d816aab061f65f7de (diff) | |
download | jemalloc-5bac384970a8224daee0b07475950a5291fc37d3.tar.gz |
If ptr present check if alloc_ctx.edata == NULL
-rw-r--r-- | src/ctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |