/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cmdlist_use_after_free.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: khais +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/03 11:40:37 by khais #+# #+# */ /* Updated: 2025/03/04 13:27:54 by khais ### ########.fr */ /* */ /* ************************************************************************** */ #include "../src/parser/wordsplit/wordsplit.h" #include "../src/parser/command_list/command_list.h" #include "libft.h" #include int main(void) { t_wordlist *words = minishell_wordsplit("|"); t_cmdlist *cmd = cmdlist_from_wordlist(words); wordlist_destroy(words); assert(cmd == NULL); return (0); }