From: Lukas Jiriste Date: Fri, 14 Jun 2024 09:03:26 +0000 (+0200) Subject: Repair problems caused by change 2 commit back X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=7b1cf3a914cdbc0c0041beeab173ccaef311cbde;p=42%2Fminishell.git Repair problems caused by change 2 commit back The change made was from t_vec to char *. This change was not made in the function handeling tokens however, which is rectified with this commit. The previous 2 commit were made quickly as an exercise in using git hence the low quality. --- diff --git a/src/input_handling.c b/src/input_handling.c index adc9285..b580fa9 100644 --- a/src/input_handling.c +++ b/src/input_handling.c @@ -6,17 +6,18 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/03 09:00:00 by ljiriste #+# #+# */ -/* Updated: 2024/06/14 10:33:27 by lnikolov ### ########.fr */ +/* Updated: 2024/06/14 11:00:16 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include "parsing.h" #include "minishell.h" #include "libft.h" +#include static void free_token(void *token) { - ft_vec_free(&((t_token *)token)->str, NULL); + free(((t_token *)token)->str); return ; }