mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-27 21:32:16 +03:00
Fix a PROF_ALLOC_PREP() error path.
Fix a PROF_ALLOC_PREP() error path to initialize the return value to NULL.
This commit is contained in:
parent
6b9ed67b4b
commit
3fb50b0407
2 changed files with 7 additions and 3 deletions
|
|
@ -227,8 +227,10 @@ bool prof_boot2(void);
|
|||
assert(size == s2u(size)); \
|
||||
\
|
||||
prof_tdata = prof_tdata_get(); \
|
||||
if (prof_tdata == NULL) \
|
||||
if (prof_tdata == NULL) { \
|
||||
ret = NULL; \
|
||||
break; \
|
||||
} \
|
||||
\
|
||||
if (opt_prof_active == false) { \
|
||||
/* Sampling is currently inactive, so avoid sampling. */\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue