mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1137580 - Do not use system realloc in mozjemalloc-exposed _recalloc. r=njn
This commit is contained in:
parent
542ae0e8e6
commit
ec6115c819
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user