Repair problems caused by change 2 commit back
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 14 Jun 2024 09:03:26 +0000 (11:03 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 14 Jun 2024 09:03:26 +0000 (11:03 +0200)
The change made was from t_vec<char> 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.

src/input_handling.c

index adc928575bfc60355ef698f49c7598327eecba7c..b580fa914bb40ed3671831459513f3bf485cdaa7 100644 (file)
@@ -6,17 +6,18 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   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 <stdlib.h>
 
 static void    free_token(void *token)
 {
-       ft_vec_free(&((t_token *)token)->str, NULL);
+       free(((t_token *)token)->str);
        return ;
 }