From 8d7f65c1c04f7124f1a34062be377fdbe721c46a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 2 Feb 2020 17:05:54 +0100 Subject: Correct ft_memdel --- libft/src/ft_memdel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_memdel.c') diff --git a/libft/src/ft_memdel.c b/libft/src/ft_memdel.c index 05c2982..a15e494 100644 --- a/libft/src/ft_memdel.c +++ b/libft/src/ft_memdel.c @@ -14,8 +14,8 @@ #include void - ft_memdel(void *ptr) + ft_memdel(void **ptr) { - free(ptr); - ptr = NULL; + free(*ptr); + *ptr = NULL; } -- cgit v1.2.3