aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-13 19:51:08 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-13 19:51:08 +0000
commit7bcb251a39ad15df12e8a711bea58368ebd42a2d (patch)
treeb8a024b63afa168778beb7469d35c3738f07c320 /main
parent6bfb727b9cf280b80306f6e1a8ef7334752cf868 (diff)
Recorded merge of revisions 194357 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r194357 | mmichelson | 2009-05-13 14:42:51 -0500 (Wed, 13 May 2009) | 18 lines Blocked revisions 194356 via svnmerge ........ r194356 | mmichelson | 2009-05-13 14:41:44 -0500 (Wed, 13 May 2009) | 13 lines 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.6.2@194360 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c
index 44095eac3..62b87340c 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1353,7 +1353,6 @@ void ast_channel_free(struct ast_channel *chan)
AST_RWLIST_WRLOCK(&channels);
if (!AST_RWLIST_REMOVE(&channels, chan, chan_list)) {
- AST_RWLIST_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