[Pkg-voip-commits] r9149 - in /asterisk/trunk/debian: changelog patches/chan_iax2-detach-thread-on-non-stop-exit patches/series
tzafrir at alioth.debian.org
tzafrir at alioth.debian.org
Thu Jul 14 09:37:02 UTC 2011
Author: tzafrir
Date: Thu Jul 14 09:37:01 2011
New Revision: 9149
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=9149
Log:
Patch chan_iax2-detach-thread-on-non-stop-exit: Hopefully plugs a
memory leak. EXPERIMENTAL. DO NOT UPLOAD WITH THIS FOR NOW.
Added:
asterisk/trunk/debian/patches/chan_iax2-detach-thread-on-non-stop-exit
Modified:
asterisk/trunk/debian/changelog
asterisk/trunk/debian/patches/series
Modified: asterisk/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/changelog?rev=9149&op=diff
==============================================================================
--- asterisk/trunk/debian/changelog (original)
+++ asterisk/trunk/debian/changelog Thu Jul 14 09:37:01 2011
@@ -2,8 +2,10 @@
* NOT RELEASED YET
* Patch fix_configure_armhf: properly detect armhf.
-
- -- Tzafrir Cohen <tzafrir at debian.org> Wed, 06 Jul 2011 18:54:01 +0300
+ * Patch chan_iax2-detach-thread-on-non-stop-exit: Hopefully plugs a
+ memory leak. EXPERIMENTAL. DO NOT UPLOAD WITH THIS FOR NOW.
+
+ -- Tzafrir Cohen <tzafrir at debian.org> Thu, 14 Jul 2011 12:21:29 +0300
asterisk (1:1.8.4.4~dfsg-2) unstable; urgency=low
Added: asterisk/trunk/debian/patches/chan_iax2-detach-thread-on-non-stop-exit
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/chan_iax2-detach-thread-on-non-stop-exit?rev=9149&op=file
==============================================================================
--- asterisk/trunk/debian/patches/chan_iax2-detach-thread-on-non-stop-exit (added)
+++ asterisk/trunk/debian/patches/chan_iax2-detach-thread-on-non-stop-exit Thu Jul 14 09:37:01 2011
@@ -1,0 +1,20 @@
+Author: Alex VillacÃÂs Lasso <a_villacis at palosanto.com>
+Bug: https://issues.asterisk.org/jira/browse/ASTERISK-17339
+Description: Fix an IAX2 memory leak
+
+This patch should hopefully plug a memory leak in IAX2. It is an
+experimental patch. DO NOT INCLUDE IN AN UPLOAD FOR NOW.
+
+--- asterisk-1.8.4.2/channels/chan_iax2.c.bak 2011-06-29 11:21:41.000000000 -0500
++++ asterisk-1.8.4.2/channels/chan_iax2.c 2011-06-29 11:48:09.000000000 -0500
+@@ -11673,6 +11673,10 @@
+ AST_LIST_REMOVE(&dynamic_list, thread, list);
+ AST_LIST_UNLOCK(&dynamic_list);
+
++ /* If nobody asked me to stop, then nobody is waiting to join me */
++ if (!thread->stop)
++ pthread_detach(pthread_self());
++
+ /* I am exiting here on my own volition, I need to clean up my own data structures
+ * Assume that I am no longer in any of the lists (idle, active, or dynamic)
+ */
Modified: asterisk/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/patches/series?rev=9149&op=diff
==============================================================================
--- asterisk/trunk/debian/patches/series (original)
+++ asterisk/trunk/debian/patches/series Thu Jul 14 09:37:01 2011
@@ -25,3 +25,5 @@
kfreebsd
gcc46
fix_configure_armhf
+
+chan_iax2-detach-thread-on-non-stop-exit
More information about the Pkg-voip-commits
mailing list