[FIX] error in libtf
This commit is contained in:
parent
3a85b1a195
commit
78f6fcc82f
3 changed files with 4 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
./minishell
|
/minishell
|
||||||
|
|
||||||
# Prerequisites
|
# Prerequisites
|
||||||
*.d
|
*.d
|
||||||
|
|
|
@ -11,7 +11,7 @@ PRINTF_CODE = \
|
||||||
ft_strjoin stream1 stream2 utils1 utils2
|
ft_strjoin stream1 stream2 utils1 utils2
|
||||||
PRINTF_SRCS = tf_printf/src/
|
PRINTF_SRCS = tf_printf/src/
|
||||||
PRINTF_INCLUDES = ./ tf_printf/include/
|
PRINTF_INCLUDES = ./ tf_printf/include/
|
||||||
WHAT = LIBTF v11
|
WHAT = LIBTF v12
|
||||||
USED = malloc() free() write()
|
USED = malloc() free() write()
|
||||||
|
|
||||||
# It works and I probably won't change it for the rest of my life
|
# It works and I probably won't change it for the rest of my life
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/12/18 11:08:16 by mcolonna #+# #+# */
|
/* Created: 2023/12/18 11:08:16 by mcolonna #+# #+# */
|
||||||
/* Updated: 2024/03/12 16:05:15 by mcolonna ### ########.fr */
|
/* Updated: 2024/04/29 13:47:37 by mcolonna ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -60,6 +60,7 @@ void mem_freeall(t_memclass mc)
|
||||||
el = ((t_memclass_in *) mc)->first;
|
el = ((t_memclass_in *) mc)->first;
|
||||||
while (el)
|
while (el)
|
||||||
{
|
{
|
||||||
|
el->previous = NULL;
|
||||||
next = el->next;
|
next = el->next;
|
||||||
free_address_with_element(el->address);
|
free_address_with_element(el->address);
|
||||||
if (el->subclass)
|
if (el->subclass)
|
||||||
|
|
Loading…
Add table
Reference in a new issue