aboutsummaryrefslogtreecommitdiffstats
path: root/libft/src/ft_memdel.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libft/src/ft_memdel.c6
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h>
void
- ft_memdel(void *ptr)
+ ft_memdel(void **ptr)
{
- free(ptr);
- ptr = NULL;
+ free(*ptr);
+ *ptr = NULL;
}