[asterisk-commits] jrose: branch 11 r410609 - /branches/11/main/manager.c

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


Author: jrose
Date: Fri Mar 14 16:12:33 2014
New Revision: 410609

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=410609
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)

Modified:
    branches/11/main/manager.c

Modified: branches/11/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/manager.c?view=diff&rev=410609&r1=410608&r2=410609
==============================================================================
--- branches/11/main/manager.c (original)
+++ branches/11/main/manager.c Fri Mar 14 16:12:33 2014
@@ -4810,6 +4810,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