summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2012-04-28 21:15:28 (GMT)
committerJason Evans <je@fb.com>2012-04-28 21:15:28 (GMT)
commit95ff6aadca1e91641e093c61091e70344d048b50 (patch)
tree9d3bb67a067a787aa0146642e832886cac4e0a85 /src
parentd926c90500d47c5e18811a944c70924c09b5890e (diff)
downloadjemalloc-95ff6aadca1e91641e093c61091e70344d048b50.zip
jemalloc-95ff6aadca1e91641e093c61091e70344d048b50.tar.gz
jemalloc-95ff6aadca1e91641e093c61091e70344d048b50.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/prof.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/prof.c b/src/prof.c
index 187bda7..cad5692 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -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