Files
42_INT_07_minishell/srcs/free.c
LuckyLaszlo a701488b6a valgrind suppression file for readline()
+ ./.valgrindrc
+ basic free_exit()
+ U_DEFAULT_* macro in _user_macro.h
2021-10-11 01:58:57 +02:00

21 lines
1022 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* free.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/10 23:53:17 by lperrey #+# #+# */
/* Updated: 2021/10/10 23:59:25 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int free_exit(t_all *c, int exit_status)
{
free(c->prompt_base);
free(c->prompt);
exit(exit_status);
}