fix up some places where frames are not free'd and remove an unnecessary
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 21:12:56 +0000 (21:12 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 21:12:56 +0000 (21:12 +0000)
unlock of the confs list where it is not possible for it to be locked

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33547 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index d06d2cd..f19eccc 100644 (file)
@@ -1440,16 +1440,19 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                        if (!ast_goto_if_exists(chan, exitcontext, tmp, 1)) {
                                                ast_log(LOG_DEBUG, "Got DTMF %c, goto context %s\n", tmp[0], exitcontext);
                                                ret = 0;
+                                               ast_frfree(f);
                                                break;
                                        } else if (option_debug > 1)
                                                ast_log(LOG_DEBUG, "Exit by single digit did not work in meetme. Extension %s does not exist in context %s\n", tmp, exitcontext);
                                } else if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#') && (confflags & CONFFLAG_POUNDEXIT)) {
                                        ret = 0;
+                                       ast_frfree(f);
                                        break;
                                } else if (((f->frametype == AST_FRAME_DTMF) && (f->subclass == '*') && (confflags & CONFFLAG_STARMENU)) || ((f->frametype == AST_FRAME_DTMF) && menu_active)) {
                                        if (ioctl(fd, ZT_SETCONF, &ztc_empty)) {
                                                ast_log(LOG_WARNING, "Error setting conference\n");
                                                close(fd);
+                                               ast_frfree(f);
                                                goto outrun;
                                        }
 
@@ -1595,7 +1598,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
                                        if (ioctl(fd, ZT_SETCONF, &ztc)) {
                                                ast_log(LOG_WARNING, "Error setting conference\n");
                                                close(fd);
-                                               AST_LIST_UNLOCK(&confs);
+                                               ast_frfree(f);
                                                goto outrun;
                                        }