]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
automerge commit
authorAutomerge script <automerge@asterisk.org>
Sun, 11 Jun 2006 15:04:26 +0000 (15:04 +0000)
committerAutomerge script <automerge@asterisk.org>
Sun, 11 Jun 2006 15:04:26 +0000 (15:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@33478 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_test.c
apps/app_zapbarge.c
apps/app_zapscan.c

index dba8bcafb20e8e7b16a8b2e2a1b350eef2c4c120..bb3c0031e97fc336a6dc189fe5e8ecc4e9eb5ac9 100644 (file)
@@ -100,6 +100,7 @@ static int measurenoise(struct ast_channel *chan, int ms, char *who)
                                samples++;
                        }
                }
+               ast_frfree(f);
        }
 
        if (rformat) {
index 10c5c49e5f0a10aebf199ffb505e21317d3bd9b9..9fea023edc55420a5cef905e6e9b1d71a0ce3337 100644 (file)
@@ -212,6 +212,7 @@ zapretry:
                                break;
                        if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
                                ret = 0;
+                               ast_frfree(f);
                                break;
                        } else if (fd != chan->fds[0]) {
                                if (f->frametype == AST_FRAME_VOICE) {
index ed0c779772544fb1cc2264636a317a18a4e3f28f..3b284ed80a817eb1fa36de548a5480e345eddb60 100644 (file)
@@ -269,6 +269,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 {