mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Merged revisions 33513 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33513 | russell | 2006-06-11 16:45:06 -0400 (Sun, 11 Jun 2006) | 2 lines fix a couple places that would leak a frame ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -238,11 +238,13 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in
|
|||||||
myf.f.data = myf.frdata;
|
myf.f.data = myf.frdata;
|
||||||
if (ast_write(chan, &myf.f) < 0) {
|
if (ast_write(chan, &myf.f) < 0) {
|
||||||
res = -1;
|
res = -1;
|
||||||
|
ast_frfree(f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (res < needed) { /* last frame */
|
if (res < needed) { /* last frame */
|
||||||
ast_log(LOG_DEBUG, "Last frame\n");
|
ast_log(LOG_DEBUG, "Last frame\n");
|
||||||
res=0;
|
res=0;
|
||||||
|
ast_frfree(f);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user