diff options
Diffstat (limited to 'util/tube.c')
-rw-r--r-- | util/tube.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/util/tube.c b/util/tube.c index 2106a078c8d2..0535474386b5 100644 --- a/util/tube.c +++ b/util/tube.c @@ -118,10 +118,8 @@ void tube_remove_bg_listen(struct tube* tube) comm_point_delete(tube->listen_com); tube->listen_com = NULL; } - if(tube->cmd_msg) { - free(tube->cmd_msg); - tube->cmd_msg = NULL; - } + free(tube->cmd_msg); + tube->cmd_msg = NULL; } void tube_remove_bg_write(struct tube* tube) |