]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Using a freed frame causes crashes (closes issue #9317)
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 18 Jul 2007 12:29:41 +0000 (12:29 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 18 Jul 2007 12:29:41 +0000 (12:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75529 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index d285e7a65598f4076be85804b1c6d531376b4a1a..8053196a235e1d54cece98bf1ba07e5d98f8e956 100644 (file)
@@ -3019,7 +3019,7 @@ static void *recordthread(void *args)
                        }
                        if (cnf->origframe)
                                ast_frfree(cnf->origframe);
-                       cnf->origframe = f;
+                       cnf->origframe = ast_frdup(f);
                        ast_mutex_unlock(&cnf->listenlock);
                        if (s)
                                res = ast_writestream(s, f);