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:
parent
b617df81bb
commit
bc96876f99
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user