From: Russell Bryant Date: Sun, 11 Jun 2006 14:44:58 +0000 (+0000) Subject: don't leak a frame when breaking out of the main loop of this app X-Git-Tag: 1.4.0-beta1~945 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ab804f0ab99c03ab36f7bea9d76528739044eec;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_zapscan.c b/apps/app_zapscan.c index 64a4f89811..b4257d8edc 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 {