summaryrefslogtreecommitdiffstats
path: root/src/b_type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/b_type.c')
-rw-r--r--src/b_type.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/b_type.c b/src/b_type.c
index 00bad1a..16791c9 100644
--- a/src/b_type.c
+++ b/src/b_type.c
@@ -56,8 +56,7 @@ static char
{
if (!(fullpath = ft_strdup(com)))
{
- lcom_clear(&msh->curr);
- f_fail_alloc(msh);
+ f_alloc_and_destroy_msh(msh);
}
return (fullpath);
}