mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-25 22:36:27 +03:00
Initialize prof_leak during prof init.
Otherwise, prof_leak may get set after prof_leak_error, and disagree with each other.
This commit is contained in:
parent
002f0e9397
commit
efc539c040
2 changed files with 4 additions and 1 deletions
|
|
@ -564,6 +564,9 @@ prof_boot1(void) {
|
|||
* opt_prof must be in its final state before any arenas are
|
||||
* initialized, so this function must be executed early.
|
||||
*/
|
||||
if (opt_prof_leak_error && !opt_prof_leak) {
|
||||
opt_prof_leak = true;
|
||||
}
|
||||
|
||||
if (opt_prof_leak && !opt_prof) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue