[asterisk-commits] jrose: branch 12 r410623 - in /branches/12: ./ main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 14 16:28:35 CDT 2014


Author: jrose
Date: Fri Mar 14 16:28:31 2014
New Revision: 410623

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=410623
Log:
manager: fix memory leak in manager_add_filter function

(closes issue ASTERISK-23420)
Reported by: Etienne Lessard
Patches:
    manager_eventfilter_leak uploaded by Etienne Lessard (license 6394)
........

Merged revisions 410609 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    branches/12/   (props changed)
    branches/12/main/manager.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/manager.c?view=diff&rev=410623&r1=410622&r2=410623
==============================================================================
--- branches/12/main/manager.c (original)
+++ branches/12/main/manager.c Fri Mar 14 16:28:31 2014
@@ -5148,6 +5148,8 @@
 		ao2_t_link(whitefilters, new_filter, "link new filter into white user container");
 	}
 
+	ao2_ref(new_filter, -1);
+
 	return FILTER_SUCCESS;
 }
 




More information about the asterisk-commits mailing list