summaryrefslogtreecommitdiff
path: root/py/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/malloc.c')
-rw-r--r--py/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/malloc.c b/py/malloc.c
index 05daeb35d..5135dc26b 100644
--- a/py/malloc.c
+++ b/py/malloc.c
@@ -56,8 +56,8 @@
#undef malloc
#undef free
#undef realloc
-#define malloc(b) gc_alloc((b), false)
-#define malloc_with_finaliser(b) gc_alloc((b), true)
+#define malloc(b) gc_alloc((b), 0)
+#define malloc_with_finaliser(b) gc_alloc((b), GC_ALLOC_FLAG_HAS_FINALISER)
#define free gc_free
#define realloc(ptr, n) gc_realloc(ptr, n, true)
#define realloc_ext(ptr, n, mv) gc_realloc(ptr, n, mv)