diff options
author | Jason Evans <je@fb.com> | 2012-04-25 13:13:44 -0700 |
---|---|---|
committer | Jason Evans <je@fb.com> | 2012-04-25 13:13:44 -0700 |
commit | 3fb50b0407ff7dfe14727995706e2b42836f0f7e (patch) | |
tree | 7d05e1bb4d8a01a23dda6247524eb116064b83d5 /include/jemalloc/internal/prof.h | |
parent | 6b9ed67b4b9d65731d1eeb7937989ef96288b706 (diff) | |
download | jemalloc-3fb50b0407ff7dfe14727995706e2b42836f0f7e.tar.gz |
Fix a PROF_ALLOC_PREP() error path.
Fix a PROF_ALLOC_PREP() error path to initialize the return value to
NULL.
Diffstat (limited to 'include/jemalloc/internal/prof.h')
-rw-r--r-- | include/jemalloc/internal/prof.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/jemalloc/internal/prof.h b/include/jemalloc/internal/prof.h index 093ac93..4c39851 100644 --- a/include/jemalloc/internal/prof.h +++ b/include/jemalloc/internal/prof.h @@ -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. */\ |