[svn-commits] rmudgett: trunk r393490 - /trunk/apps/app_mixmonitor.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 2 16:01:25 CDT 2013


Author: rmudgett
Date: Tue Jul  2 16:01:23 2013
New Revision: 393490

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393490
Log:
MixMonitor: Fix refleak in manager_stop_mixmonitor() if could not stop monitoring.

Modified:
    trunk/apps/app_mixmonitor.c

Modified: trunk/apps/app_mixmonitor.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_mixmonitor.c?view=diff&rev=393490&r1=393489&r2=393490
==============================================================================
--- trunk/apps/app_mixmonitor.c (original)
+++ trunk/apps/app_mixmonitor.c Tue Jul  2 16:01:23 2013
@@ -1357,6 +1357,7 @@
 	res = stop_mixmonitor_full(c, mixmonitor_id);
 
 	if (res) {
+		ast_channel_unref(c);
 		astman_send_error(s, m, "Could not stop monitoring channel");
 		return AMI_SUCCESS;
 	}




More information about the svn-commits mailing list