diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 20f432682..19d7a7c2c 100644 --- a/main/channel.c +++ b/main/channel.c @@ -1287,7 +1287,6 @@ void ast_channel_free(struct ast_channel *chan) if (chan->pbx) ast_log(LOG_WARNING, "PBX may not have been terminated properly on '%s'\n", chan->name); free_cid(&chan->cid); - ast_mutex_destroy(&chan->lock_dont_use); /* Close pipes if appropriate */ if ((fd = chan->alertpipe[0]) > -1) close(fd); @@ -1321,6 +1320,8 @@ void ast_channel_free(struct ast_channel *chan) /* Destroy the jitterbuffer */ ast_jb_destroy(chan); + + ast_mutex_destroy(&chan->lock_dont_use); ast_string_field_free_memory(chan); ast_free(chan); |