aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc/free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc/free.c')
-rw-r--r--src/alloc/free.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/alloc/free.c b/src/alloc/free.c
index 90d16d5..67b54bd 100644
--- a/src/alloc/free.c
+++ b/src/alloc/free.c
@@ -6,5 +6,9 @@
#include <alloc.h>
-extern inline void calt_free(void *ptr);
+void calt_free(void *ptr) {
+ if (ptr) {
+ calt_get_alloc().free(ptr);
+ }
+}