Bug 1137580 - Do not use system realloc in mozjemalloc-exposed _recalloc. r=njn

This commit is contained in:
Mike Hommey 2015-08-07 16:20:15 +09:00
parent 542ae0e8e6
commit ec6115c819

View File

@ -6782,7 +6782,7 @@ _recalloc(void *ptr, size_t count, size_t size)
* trailing bytes.
*/
ptr = realloc(ptr, newsize);
ptr = realloc_impl(ptr, newsize);
if (ptr != NULL && oldsize < newsize) {
memset((void *)((uintptr_t)ptr + oldsize), 0, newsize -
oldsize);