summaryrefslogtreecommitdiffstats
path: root/src/m_loop.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/m_loop.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/m_loop.c b/src/m_loop.c
index a2cf621..732c005 100644
--- a/src/m_loop.c
+++ b/src/m_loop.c
@@ -54,10 +54,8 @@ static void m_parse_and_run_line(char line[], uint8_t previf, t_msh *msh)
continue ;
}
e_line_block(msh);
- if (msh->com != NULL)
- s_com_destroy(&msh->com);
- if (msh->pipes != NULL)
- s_lpipes_clear(&msh->pipes);
+ s_com_destroy(&msh->com);
+ s_lpipes_clear(&msh->pipes);
}
previf = ptr->nextif;
ptr = ptr->next;