aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-09-17 14:47:39 -0700
committerJason Evans <jasone@canonware.com>2015-09-17 14:49:50 -0700
commit3ca0cf6a68c9eab7668be14d2b07645277f8b833 (patch)
treecc95ed05d471dad6bace9b3a824f65029b859219 /src
parent3263be6efb5232963c0820da65e235d1693e404d (diff)
downloadjemalloc-3ca0cf6a68c9eab7668be14d2b07645277f8b833.tar.gz
Fix prof_alloc_rollback().
Fix prof_alloc_rollback() to read tdata from thread-specific data rather than dereferencing a potentially invalid tctx.
Diffstat (limited to 'src')
-rw-r--r--src/prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/prof.c b/src/prof.c
index d68478f..0a08062 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -209,7 +209,7 @@ prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated)
*/
tdata = prof_tdata_get(tsd, true);
if (tdata != NULL)
- prof_sample_threshold_update(tctx->tdata);
+ prof_sample_threshold_update(tdata);
}
if ((uintptr_t)tctx > (uintptr_t)1U) {