From 78f6fcc82f7272dc56a276e163fcf7a1a362ad00 Mon Sep 17 00:00:00 2001 From: mcolonna Date: Mon, 29 Apr 2024 13:52:25 +0200 Subject: [PATCH] [FIX] error in libtf --- .gitignore | 2 +- libtf/Makefile | 2 +- libtf/src/mem.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c5d6576..2f49f62 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -./minishell +/minishell # Prerequisites *.d diff --git a/libtf/Makefile b/libtf/Makefile index 889a1eb..843f733 100644 --- a/libtf/Makefile +++ b/libtf/Makefile @@ -11,7 +11,7 @@ PRINTF_CODE = \ ft_strjoin stream1 stream2 utils1 utils2 PRINTF_SRCS = tf_printf/src/ PRINTF_INCLUDES = ./ tf_printf/include/ -WHAT = LIBTF v11 +WHAT = LIBTF v12 USED = malloc() free() write() # It works and I probably won't change it for the rest of my life diff --git a/libtf/src/mem.c b/libtf/src/mem.c index bde9c62..b57c8d3 100644 --- a/libtf/src/mem.c +++ b/libtf/src/mem.c @@ -6,7 +6,7 @@ /* 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; while (el) { + el->previous = NULL; next = el->next; free_address_with_element(el->address); if (el->subclass)