diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-26 17:18:16 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-26 17:18:16 +0200 |
commit | 75492244a377c8d5d61459a162d73d60dd32759e (patch) | |
tree | c1d86b502143a97a7fde36db303bdab4a62ae2dd /src/ft_p_line.c | |
parent | Todo update (diff) | |
download | 42-minishell-75492244a377c8d5d61459a162d73d60dd32759e.tar.gz 42-minishell-75492244a377c8d5d61459a162d73d60dd32759e.tar.bz2 42-minishell-75492244a377c8d5d61459a162d73d60dd32759e.tar.xz 42-minishell-75492244a377c8d5d61459a162d73d60dd32759e.tar.zst 42-minishell-75492244a377c8d5d61459a162d73d60dd32759e.zip |
Tryna subst vars
Diffstat (limited to 'src/ft_p_line.c')
-rw-r--r-- | src/ft_p_line.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_p_line.c b/src/ft_p_line.c index 07c5fac..b1ba6b2 100644 --- a/src/ft_p_line.c +++ b/src/ft_p_line.c @@ -17,6 +17,7 @@ #include "ft_f_fail.h" #include "ft_p_lcom.h" #include "ft_p_line.h" +#include "ft_s_destroy.h" #include "ft_s_struct.h" void @@ -42,6 +43,7 @@ void } if (ft_p_lcom(line, count, msh) < 0) { + ft_s_destroy(msh); ft_fail_alloc(msh); } } |