diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-05-28 14:56:06 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-05-28 14:56:06 -0400 |
| commit | b4cd7036bea6c6440fbbcdaebe53c864c87a5646 (patch) | |
| tree | 260670ad9a9637c8c36d84b9cf77ec412017b038 /src/stdlib/free.c | |
| parent | a69b11fd8974a898a26081950bd4add7c82ea45d (diff) | |
integrate jkmalloc/prep for readonly
Diffstat (limited to 'src/stdlib/free.c')
| -rw-r--r-- | src/stdlib/free.c | 7 |
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); } /*** |
