diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-26 18:10:47 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-26 18:10:47 +0200 |
commit | c334947c7ae9722a3f3eca14410e244d62d95a54 (patch) | |
tree | 1d6723a1fe3614de25fa585ad01e40cf0bc1b365 /libft/src | |
parent | Tryna subst vars (diff) | |
download | 42-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/src')
-rw-r--r-- | libft/src/ft_nrealloc.c | 4 |
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); } |