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:
Jason Evans 2012-04-28 14:15:28 -07:00
parent d926c90500
commit 95ff6aadca

View File

@ -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