From 75492244a377c8d5d61459a162d73d60dd32759e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 26 Apr 2020 17:18:16 +0200 Subject: Tryna subst vars --- src/ft_p_line.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_p_line.c') 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); } } -- cgit v1.2.3