mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
don't leak a frame when breaking out of the main loop of this app
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -272,6 +272,8 @@ static int conf_run(struct ast_channel *chan, int confno, int confflags)
|
|||||||
ast_log(LOG_WARNING, "Failed to read frame: %s\n", strerror(errno));
|
ast_log(LOG_WARNING, "Failed to read frame: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (f)
|
||||||
|
ast_frfree(f);
|
||||||
if (fd != chan->fds[0])
|
if (fd != chan->fds[0])
|
||||||
close(fd);
|
close(fd);
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user