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
@ -1155,10 +1155,7 @@ prof_tdata_cleanup(void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
idalloc(prof_tdata->vec);
|
idalloc(prof_tdata->vec);
|
||||||
|
|
||||||
idalloc(prof_tdata);
|
idalloc(prof_tdata);
|
||||||
prof_tdata = NULL;
|
|
||||||
prof_tdata_tsd_set(&prof_tdata);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user