summaryrefslogtreecommitdiff
path: root/src/stdlib/free.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/free.c')
-rw-r--r--src/stdlib/free.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/stdlib/free.c b/src/stdlib/free.c
index e0a1270a..47c04dd0 100644
--- a/src/stdlib/free.c
+++ b/src/stdlib/free.c
@@ -1,5 +1,6 @@
#include <stdlib.h>
#include "_stdlib.h"
+#include "_jkmalloc.h"
/** deallocate memory **/
@@ -7,11 +8,9 @@ void free(void * ptr)
{
SIGNAL_SAFE(0);
- if (ptr == NULL) {
- return;
+ if (ptr) {
+ __jkmalloc(NULL, NULL, 0, ptr, 0, 0, 0);
}
-
- realloc(ptr, 0);
}
/***