summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2015-01-21 17:01:43 (GMT)
committerJason Evans <je@fb.com>2015-01-22 22:02:56 (GMT)
commitbc96876f99e89705817630b503ac54a5c48789ab (patch)
tree637f54a7bc353b54ed26f1a42088a3c3101e515f /src
parentb617df81bbd35b2d7124b16df4024f9541644f6e (diff)
downloadjemalloc-bc96876f99e89705817630b503ac54a5c48789ab.zip
jemalloc-bc96876f99e89705817630b503ac54a5c48789ab.tar.gz
jemalloc-bc96876f99e89705817630b503ac54a5c48789ab.tar.bz2
Fix arenas_cache_cleanup().
Fix arenas_cache_cleanup() to check whether arenas_cache is NULL before deallocation, rather than checking arenas.
Diffstat (limited to 'src')
-rw-r--r--src/jemalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jemalloc.c b/src/jemalloc.c
index aecdce3..c53129a 100644
--- a/src/jemalloc.c
+++ b/src/jemalloc.c
@@ -601,7 +601,7 @@ arenas_cache_cleanup(tsd_t *tsd)
arena_t **arenas_cache;
arenas_cache = tsd_arenas_cache_get(tsd);
- if (arenas != NULL)
+ if (arenas_cache != NULL)
a0free(arenas_cache);
}