mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 05:03:10 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user