]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Free frames read from the channel when measuring noise. This resulted in about
authorRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 15:02:40 +0000 (15:02 +0000)
committerRussell Bryant <russell@russellbryant.com>
Sun, 11 Jun 2006 15:02:40 +0000 (15:02 +0000)
9 or 10 seconds of leaked frames in both the TestClient and TestServer
applications

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33466 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_test.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) {