From eaaeb7a1bcd0e15b700b050fb2d200c67b727bf7 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 9 Jul 2010 19:58:06 +0000 Subject: [PATCH] Add missing ao2_iterator_destroy(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@275310 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/features.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main/features.c b/main/features.c index 9e0127a6e8..1f1da2967d 100644 --- a/main/features.c +++ b/main/features.c @@ -4651,9 +4651,7 @@ static char *handle_feature_show(struct ast_cli_entry *e, int cmd, struct ast_cl 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 @@ static char *handle_feature_show(struct ast_cli_entry *e, int cmd, struct ast_cl ast_cli(a->fd,"\n"); ao2_ref(curlot, -1); } - + ao2_iterator_destroy(&iter); return CLI_SUCCESS; } -- 2.47.2