diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-09 19:58:06 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-09 19:58:06 +0000 |
commit | 43dbac80653d505e7af5c6f48d28eb1db6a5dc41 (patch) | |
tree | 0953c48b10549c3baa426936df430e4c54c33693 /main/features.c | |
parent | e3b0b4d52640529e08b7747664d2445dc4fb159c (diff) |
Add missing ao2_iterator_destroy().
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@275310 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/main/features.c b/main/features.c index 9e0127a6e..1f1da2967 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; } |