diff options
Diffstat (limited to '')
-rw-r--r-- | src/s_com.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/s_com.c b/src/s_com.c index 7ed20bc..14dc4ef 100644 --- a/src/s_com.c +++ b/src/s_com.c @@ -81,6 +81,8 @@ void s_com_destroy(t_com **com) { t_com *ptr; + if (*com == NULL) + return ; ptr = *com; ft_memdel((void*)&ptr->bin); if (ptr->argv != NULL) |