summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/scudo/scudo_malloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/scudo/scudo_malloc.cpp')
-rw-r--r--compiler-rt/lib/scudo/scudo_malloc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/scudo/scudo_malloc.cpp b/compiler-rt/lib/scudo/scudo_malloc.cpp
index eb1047ac075..6e83be42224 100644
--- a/compiler-rt/lib/scudo/scudo_malloc.cpp
+++ b/compiler-rt/lib/scudo/scudo_malloc.cpp
@@ -20,11 +20,11 @@ using namespace __scudo;
extern "C" {
INTERCEPTOR_ATTRIBUTE void free(void *ptr) {
- scudoFree(ptr, FromMalloc);
+ scudoDeallocate(ptr, 0, 0, FromMalloc);
}
INTERCEPTOR_ATTRIBUTE void *malloc(SIZE_T size) {
- return scudoMalloc(size, FromMalloc);
+ return scudoAllocate(size, 0, FromMalloc);
}
INTERCEPTOR_ATTRIBUTE void *realloc(void *ptr, SIZE_T size) {
@@ -50,7 +50,7 @@ INTERCEPTOR_ATTRIBUTE void cfree(void *ptr) ALIAS("free");
#if SANITIZER_INTERCEPT_MEMALIGN
INTERCEPTOR_ATTRIBUTE void *memalign(SIZE_T alignment, SIZE_T size) {
- return scudoMemalign(alignment, size);
+ return scudoAllocate(size, alignment, FromMemalign);
}
INTERCEPTOR_ATTRIBUTE
OpenPOWER on IntegriCloud