/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* pfree_cmd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/08 00:58:02 by wescande #+# #+# */ /* Updated: 2017/03/13 22:31:32 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "minishell.h" int pfree_cmd(t_process *p) { ft_strdel(&p->data.cmd.path); ft_sstrfree(p->data.cmd.av); p->data.cmd.execf = NULL; ft_memdel((void**)&p->data.cmd.stat); return (0); }