fixes memory leak in func_audiohookinherit.c
authorDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 15:04:24 +0000 (15:04 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 15:04:24 +0000 (15:04 +0000)
(closes issue #15394)
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/trunk@228268 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_audiohookinherit.c

index 7f62369..74f89b9 100644 (file)
@@ -126,6 +126,7 @@ static void audiohook_inheritance_fixup(void *data, struct ast_channel *old_chan
                ast_debug(3, "Moved audiohook %s from %s(%p) to %s(%p)\n",
                        audiohook->source, old_chan->name, old_chan, new_chan->name, new_chan);
        }
+       ast_free(datastore);
        return;
 }