summaryrefslogtreecommitdiff
path: root/src/alloc-override-osx.c
diff options
context:
space:
mode:
authorDaan <daanl@outlook.com>2022-04-07 16:12:16 -0700
committerDaan <daanl@outlook.com>2022-04-07 16:12:16 -0700
commit25ecec3c3b77a85f1344bacb6c9538c555b49e12 (patch)
treef60dc2627aa57d0beac9c8376428fe2d68b55a1e /src/alloc-override-osx.c
parent82dd094ec4d7f36067fdd55aa10aea438dae588f (diff)
fix for dynamic overriding on macOS; add warning about C++ compilation (as that does not interact well with interpose)
Diffstat (limited to 'src/alloc-override-osx.c')
-rw-r--r--src/alloc-override-osx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc-override-osx.c b/src/alloc-override-osx.c
index 9c331ca..41d0a38 100644
--- a/src/alloc-override-osx.c
+++ b/src/alloc-override-osx.c
@@ -64,7 +64,7 @@ static void* zone_valloc(malloc_zone_t* zone, size_t size) {
static void zone_free(malloc_zone_t* zone, void* p) {
MI_UNUSED(zone);
- mi_free(p);
+ mi_cfree(p);
}
static void* zone_realloc(malloc_zone_t* zone, void* p, size_t newsize) {
@@ -373,7 +373,7 @@ __attribute__((used)) static const struct mi_interpose_s _mi_zone_interposes[]
MI_INTERPOSE_MI(_malloc_fork_child),
MI_INTERPOSE_MI(_malloc_fork_parent),
MI_INTERPOSE_MI(_malloc_fork_prepare),
-
+
MI_INTERPOSE_ZONE(zone_batch_free),
MI_INTERPOSE_ZONE(zone_batch_malloc),
MI_INTERPOSE_ZONE(zone_calloc),