diff options
Diffstat (limited to 'libft/src/ft_kernel_panic.c')
-rw-r--r-- | libft/src/ft_kernel_panic.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libft/src/ft_kernel_panic.c b/libft/src/ft_kernel_panic.c index 437a79a..980d4bc 100644 --- a/libft/src/ft_kernel_panic.c +++ b/libft/src/ft_kernel_panic.c @@ -13,12 +13,13 @@ #include <libft.h> #include <stdlib.h> -void - ft_kernel_panic(void) +void ft_kernel_panic(void) { - int *ptr; + int *ptr; while (1) + { ptr = (int *)ft_calloc((1024 * 1024) * sizeof(int), 1); + } free(ptr); } |