/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* free_token.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: dkaiser previous != NULL) token->previous->next = NULL; if (token->next != NULL) token->next->previous = NULL; free(token); } void free_token_and_connect(t_token *token) { if (token->type == STRING_TOKEN) free(token->content.string); if (token->previous != NULL) token->previous->next = token->next; if (token->next != NULL) token->next->previous = token->previous; free(token); }