]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a dsp structure leak occuring when a local channel is put into a meetme
authorJean Galarneau <jgalarneau@digium.com>
Thu, 29 Jul 2010 15:52:31 +0000 (15:52 +0000)
committerJean Galarneau <jgalarneau@digium.com>
Thu, 29 Jul 2010 15:52:31 +0000 (15:52 +0000)
conference, then masquaraded away.
ABE-2422

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

apps/app_meetme.c

index 132f31d2ff3f3ca1c4514f36db29271becdbbbc9..111977beb53fa9182909cba416cf62b1350b041f 100644 (file)
@@ -1914,6 +1914,9 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, int c
 
        conf_flush(fd, chan);
 
+       if (dsp)
+               ast_dsp_free(dsp);
+
        if (!(dsp = ast_dsp_new())) {
                ast_log(LOG_WARNING, "Unable to allocate DSP!\n");
                res = -1;