summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-11 14:44:58 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-11 14:44:58 +0000
commit1ab804f0ab99c03ab36f7bea9d76528739044eec (patch)
treeb3f277a99c154d5fb9413d61b5a1def82221e51c
parent171992e5052534b06c5d5cebcb5a14aff58b3809 (diff)
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
-rw-r--r--apps/app_zapscan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_zapscan.c b/apps/app_zapscan.c
index 64a4f8981..b4257d8ed 100644
--- a/apps/app_zapscan.c
+++ b/apps/app_zapscan.c
@@ -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 {