mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +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));
|
||||
}
|
||||
}
|
||||
if (f)
|
||||
ast_frfree(f);
|
||||
if (fd != chan->fds[0])
|
||||
close(fd);
|
||||
else {
|
||||
|
Reference in New Issue
Block a user