[asterisk-commits] kmoore: trunk r382489 - /trunk/main/threadpool.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 6 09:21:46 CST 2013


Author: kmoore
Date: Wed Mar  6 09:21:42 2013
New Revision: 382489

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382489
Log:
Resolve a ref leak in threadpool.c

Ownership of the listener reference is not transferred because the
listener is reffed when placed into the taskprocessor. Ensure that the
listener is dereffed properly.

Modified:
    trunk/main/threadpool.c

Modified: trunk/main/threadpool.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/threadpool.c?view=diff&rev=382489&r1=382488&r2=382489
==============================================================================
--- trunk/main/threadpool.c (original)
+++ trunk/main/threadpool.c Wed Mar  6 09:21:42 2013
@@ -1188,7 +1188,6 @@
 	if (!tps) {
 		return NULL;
 	}
-	listener = NULL; /* ownership transferred to tps */
 
 	return tps;
 }




More information about the asterisk-commits mailing list