Avoid multiple free
authorMark Spencer <markster@digium.com>
Tue, 20 Dec 2005 23:36:22 +0000 (23:36 +0000)
committerMark Spencer <markster@digium.com>
Tue, 20 Dec 2005 23:36:22 +0000 (23:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7565 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_meetme.c

index 4333901..45b42ef 100644 (file)
@@ -813,9 +813,9 @@ static int conf_free(struct ast_conference *conf)
                        ast_frfree(conf->transframe[x]);
                if (conf->transpath[x])
                        ast_translator_free_path(conf->transpath[x]);
-               if (conf->origframe)
-                       ast_frfree(conf->origframe);
        }
+       if (conf->origframe)
+               ast_frfree(conf->origframe);
        if (conf->chan)
                ast_hangup(conf->chan);
        else