Fix arenas_cache_cleanup().

Fix arenas_cache_cleanup() to check whether arenas_cache is NULL before
deallocation, rather than checking arenas.
This commit is contained in:
Jason Evans 2015-01-21 09:01:43 -08:00
parent b617df81bb
commit bc96876f99

View File

@ -601,7 +601,7 @@ arenas_cache_cleanup(tsd_t *tsd)
arena_t **arenas_cache; arena_t **arenas_cache;
arenas_cache = tsd_arenas_cache_get(tsd); arenas_cache = tsd_arenas_cache_get(tsd);
if (arenas != NULL) if (arenas_cache != NULL)
a0free(arenas_cache); a0free(arenas_cache);
} }