diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-09 19:59:08 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-09 19:59:08 +0000 |
commit | 776d1c1c6f6f96ab194275c331d5695035ce5e73 (patch) | |
tree | 0b182c3cf8fce0c350ed0a0494a901406ad0faf1 /main | |
parent | b04496c4f9b353ec4db5e3719bc95ddf8d01121e (diff) |
Merged revisions 275310 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r275310 | russell | 2010-07-09 14:58:06 -0500 (Fri, 09 Jul 2010) | 2 lines
Add missing ao2_iterator_destroy().
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@275311 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-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 3675a9d6a..72111193b 100644 --- a/main/features.c +++ b/main/features.c @@ -4085,9 +4085,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"); @@ -4097,7 +4095,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; } |