summaryrefslogtreecommitdiffstats
path: root/libft
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-26 18:10:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-26 18:10:47 +0200
commitc334947c7ae9722a3f3eca14410e244d62d95a54 (patch)
tree1d6723a1fe3614de25fa585ad01e40cf0bc1b365 /libft
parentTryna subst vars (diff)
download42-minishell-c334947c7ae9722a3f3eca14410e244d62d95a54.tar.gz
42-minishell-c334947c7ae9722a3f3eca14410e244d62d95a54.tar.bz2
42-minishell-c334947c7ae9722a3f3eca14410e244d62d95a54.tar.xz
42-minishell-c334947c7ae9722a3f3eca14410e244d62d95a54.tar.zst
42-minishell-c334947c7ae9722a3f3eca14410e244d62d95a54.zip
Nice vars gathering
Diffstat (limited to 'libft')
-rw-r--r--libft/src/ft_nrealloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libft/src/ft_nrealloc.c b/libft/src/ft_nrealloc.c
index ea13f19..82975d1 100644
--- a/libft/src/ft_nrealloc.c
+++ b/libft/src/ft_nrealloc.c
@@ -27,12 +27,12 @@ void
}
else if (!newsize)
{
- free(ptr);
+ ft_memdel((void*)&ptr);
return (NULL);
}
if (!(nptr = malloc(newsize)))
return (ptr);
ft_memcpy(nptr, ptr, oldsize);
- free(ptr);
+ ft_memdel((void*)&ptr);
return (nptr);
}