diff --git a/common/dlmalloc.c b/common/dlmalloc.c index b4341fe..f006206 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1745,6 +1745,7 @@ mchunkptr p; INTERNAL_SIZE_T csz; INTERNAL_SIZE_T sz = n * elem_size; + void *mem; /* check if expand_top called, in which case don't need to clear */ mchunkptr oldtop = top; @@ -1753,7 +1754,7 @@ if ((long)n < 0) return NULL; - void *mem = malloc(sz); + mem = malloc(sz); if (!mem) return NULL;