summaryrefslogtreecommitdiffstats
path: root/src/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index d5240fc25e..6dde107bfa 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -4457,9 +4457,11 @@ channel_parse_messages(void)
if (channel->ch_killing)
{
channel_free_contents(channel);
+ channel_free_channel(channel);
channel->ch_job->jv_channel = NULL;
}
- channel_free(channel);
+ else
+ channel_free(channel);
// channel has been freed, start over
channel = first_channel;
continue;