]> git.ipfire.org Git - thirdparty/asterisk.git/commit
confbridge: Fix some resource leaks on conference teardown.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 6 Dec 2012 23:58:21 +0000 (23:58 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 6 Dec 2012 23:58:21 +0000 (23:58 +0000)
commit97fcde6af768e388355e9347da0a5b1723c7b4b5
tree82b71e1ddab7b66abdd564a433d0a234ca535fff
parentbaff2aa4b06911347ff236e69ddd6dc113d8bff7
confbridge: Fix some resource leaks on conference teardown.

* Made destroy_conference_bridge() destroy a missed ast_mutex_t and ast_cond_t.

* Made join_conference_bridge() init the ast_mutex_t's and ast_cond_t so
destroy_conference_bridge() can destroy them unconditionally.

* Made join_conference_bridge() abort if the new conference could not be
added to the conferences container.

* Made leave_conference() discard any post-join actions if
join_conference_bridge() had to abort early.

* Made the join_conference_bridge() diagnostic messages better describe
what happened.

* Renamed leave_conference_bridge() to leave_conference() and made it only
take a conference user pointer.  The conference pointer was redundant.

* Made conf_bridge_profile_copy() use struct copy instead of memcpy().

* No need to lock the conference in start_conf_record_thread() since all
of the callers already have it locked.
........

Merged revisions 377354 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@377355 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_confbridge.c
apps/confbridge/conf_config_parser.c