]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fixes memory leak in func_audiohookinherit.c
authorDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 15:07:31 +0000 (15:07 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 15:07:31 +0000 (15:07 +0000)
(closes issue 0015394)
Reported by: boroda
Patches:
      bug15394_memoryleak_diff2.txt uploaded by dbrooks (license 790)
Tested by: dbrooks, boroda

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

funcs/func_audiohookinherit.c

index 6936864e30cbb6fc6560a961565bd2ce7b29e238..3a5c1763c57d1895e68a8614a255c2f3b4df460c 100644 (file)
@@ -77,6 +77,7 @@ static void audiohook_inheritance_fixup(void *data, struct ast_channel *old_chan
                                audiohook->source, old_chan->name, old_chan, new_chan->name, new_chan);
                }
        }
+       ast_free(datastore);
        return;
 }