automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@33575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Automerge script 19 years ago
parent 9de1f31bbc
commit 8aa9a0e17f

@ -1327,16 +1327,19 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
tmp[1] = '\0'; tmp[1] = '\0';
if (!ast_goto_if_exists(chan, exitcontext, tmp, 1)) { if (!ast_goto_if_exists(chan, exitcontext, tmp, 1)) {
ret = 0; ret = 0;
ast_frfree(f);
break; break;
} else if (option_debug > 1) } 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); 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)) { } else if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#') && (confflags & CONFFLAG_POUNDEXIT)) {
ret = 0; ret = 0;
ast_frfree(f);
break; break;
} else if (((f->frametype == AST_FRAME_DTMF) && (f->subclass == '*') && (confflags & CONFFLAG_STARMENU)) || ((f->frametype == AST_FRAME_DTMF) && menu_active)) { } 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)) { if (ioctl(fd, ZT_SETCONF, &ztc_empty)) {
ast_log(LOG_WARNING, "Error setting conference\n"); ast_log(LOG_WARNING, "Error setting conference\n");
close(fd); close(fd);
ast_frfree(f);
goto outrun; goto outrun;
} }
@ -1494,7 +1497,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
if (ioctl(fd, ZT_SETCONF, &ztc)) { if (ioctl(fd, ZT_SETCONF, &ztc)) {
ast_log(LOG_WARNING, "Error setting conference\n"); ast_log(LOG_WARNING, "Error setting conference\n");
close(fd); close(fd);
ast_mutex_unlock(&conflock); ast_frfree(f);
goto outrun; goto outrun;
} }
@ -2174,9 +2177,11 @@ static void *recordthread(void *args)
} }
if (f->frametype == AST_FRAME_VOICE) { if (f->frametype == AST_FRAME_VOICE) {
res = ast_writestream(s, f); res = ast_writestream(s, f);
if (res) if (res) {
ast_frfree(f);
break; break;
} }
}
ast_frfree(f); ast_frfree(f);
if (cnf->recording == MEETME_RECORD_TERMINATE) { if (cnf->recording == MEETME_RECORD_TERMINATE) {
ast_mutex_lock(&conflock); ast_mutex_lock(&conflock);

@ -4908,9 +4908,11 @@ static void *async_wait(void *data)
break; break;
if (f->frametype == AST_FRAME_CONTROL) { if (f->frametype == AST_FRAME_CONTROL) {
if ((f->subclass == AST_CONTROL_BUSY) || if ((f->subclass == AST_CONTROL_BUSY) ||
(f->subclass == AST_CONTROL_CONGESTION) ) (f->subclass == AST_CONTROL_CONGESTION) ) {
ast_frfree(f);
break; break;
} }
}
ast_frfree(f); ast_frfree(f);
} }
if (chan->_state == AST_STATE_UP) { if (chan->_state == AST_STATE_UP) {

Loading…
Cancel
Save