[asterisk-commits] russell: trunk r275310 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 9 14:58:09 CDT 2010


Author: russell
Date: Fri Jul  9 14:58:06 2010
New Revision: 275310

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=275310
Log:
Add missing ao2_iterator_destroy().

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=275310&r1=275309&r2=275310
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Fri Jul  9 14:58:06 2010
@@ -4651,9 +4651,7 @@
 		AST_RWLIST_UNLOCK(&feature_list);
 	}
 
-	// loop through all the parking lots
 	iter = ao2_iterator_init(parkinglots, 0);
-
 	while ((curlot = ao2_iterator_next(&iter))) {
 		ast_cli(a->fd, "\nCall parking (Parking lot: %s)\n", curlot->name);
 		ast_cli(a->fd, "------------\n");
@@ -4663,7 +4661,7 @@
 		ast_cli(a->fd,"\n");
 		ao2_ref(curlot, -1);
 	}
-
+	ao2_iterator_destroy(&iter);
 
 	return CLI_SUCCESS;
 }




More information about the asterisk-commits mailing list