[asterisk-commits] mmichelson: branch group/CCSS r220676 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 28 11:07:32 CDT 2009


Author: mmichelson
Date: Mon Sep 28 11:07:29 2009
New Revision: 220676

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=220676
Log:
Fix another memory leak and add new debug message


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=220676&r1=220675&r2=220676
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Mon Sep 28 11:07:29 2009
@@ -895,6 +895,7 @@
 static void monitor_destroy(void *data)
 {
 	struct ast_cc_monitor *monitor = data;
+	ast_log(LOG_NOTICE, "Destructor called for monitor %s\n", monitor->interface->name);
 	monitor->callbacks->destructor(monitor);
 	ao2_ref(monitor->interface, -1);
 }
@@ -1562,6 +1563,7 @@
 
 	if (gen_mon_pvt->current_state == new_state) {
 		ast_free(gtcd);
+		cc_unref(monitor, "Kill reference from generic_monitor_devstate_cb");
 		return 0;
 	}
 




More information about the asterisk-commits mailing list