aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-13 19:41:44 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-13 19:41:44 +0000
commitfbf69efe6a45cde776f2d9d1e76726f2c65c709c (patch)
tree6152e2caf7586cb0480713080d9824397cb61cd2
parent1970b05ad4bf7510e14c351087bd5314feb2ffcf (diff)
Remove an extraneous unlocking operation from ast_channel_free.
In the case that we could not remove the desired channel from the list of channels, there was an extra call to unlock the channel list. Since we unlock the list later on in the function anyway, this results in the list being unlocked twice yet only being locked once. (closes issue #15098) Reported by: tim_ringenbach Patches: remove_extra_unlock.diff uploaded by tim (license 540) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@194356 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--main/channel.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index 6683d2b91..74929dcbb 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1225,7 +1225,6 @@ void ast_channel_free(struct ast_channel *chan)
AST_LIST_LOCK(&channels);
if (!AST_LIST_REMOVE(&channels, chan, chan_list)) {
- AST_LIST_UNLOCK(&channels);
ast_log(LOG_ERROR, "Unable to find channel in list to free. Assuming it has already been done.\n");
}
/* Lock and unlock the channel just to be sure nobody has it locked still