]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix joinable thread terminating without joiner memory leak in chan_iax.c.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 9 Jan 2012 21:54:01 +0000 (21:54 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 9 Jan 2012 21:54:01 +0000 (21:54 +0000)
commitfb6b3993245f8bca7fa996334af0f73dbb406bac
tree9d47c31cd9b7036783db2a9298b2090d0429cdd5
parent8726d89f584073fd363f701f5fa3728350fd9766
Fix joinable thread terminating without joiner memory leak in chan_iax.c.

The iax2_process_thread() can exit without anyone waiting to join the
thread.  If noone is waiting to join the thread then a large memory leak
occurs.

* Made iax2_process_thread() deatach itself if nobody is waiting to join
the thread.

(closes issue ASTERISK-17339)
Reported by: Tzafrir Cohen
Patches:
      asterisk-1.8.4.4-chan_iax2-detach-thread-on-non-stop-exit.patch (license #5617) patch uploaded by Alex Villacis Lasso (modified)

(closes issue ASTERISK-17825)
Reported by: wangjin

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@350220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c