aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/alloc.c')
-rw-r--r--libs/libc/alloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/libc/alloc.c b/libs/libc/alloc.c
index b8139d0..485a60f 100644
--- a/libs/libc/alloc.c
+++ b/libs/libc/alloc.c
@@ -414,8 +414,7 @@ void *malloc_debug(u32 size, const char *file, int line, const char *func, const
void free_debug(void *ptr, const char *file, int line, const char *func, const char *inp)
{
- if (ptr)
- _free(ptr);
+ _free(ptr);
(void)file;
(void)line;