mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-20 09:21:14 +03:00
Don't set prof_tdata during thread cleanup.
Don't set prof_tdata during thread cleanup, because doing so will cause the cleanup function to be called again, the second time with a NULL argument.
This commit is contained in:
parent
d926c90500
commit
95ff6aadca
1 changed files with 0 additions and 3 deletions
|
|
@ -1155,10 +1155,7 @@ prof_tdata_cleanup(void *arg)
|
|||
}
|
||||
|
||||
idalloc(prof_tdata->vec);
|
||||
|
||||
idalloc(prof_tdata);
|
||||
prof_tdata = NULL;
|
||||
prof_tdata_tsd_set(&prof_tdata);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue