diff options
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); } } |