From: David Vossel Date: Fri, 6 Nov 2009 15:07:31 +0000 (+0000) Subject: fixes memory leak in func_audiohookinherit.c X-Git-Tag: 1.4.27-rc3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25968fe49b3ae19a05b4947237c609b0fad40276;p=thirdparty%2Fasterisk.git fixes memory leak in func_audiohookinherit.c (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 --- diff --git a/funcs/func_audiohookinherit.c b/funcs/func_audiohookinherit.c index 6936864e30..3a5c1763c5 100644 --- a/funcs/func_audiohookinherit.c +++ b/funcs/func_audiohookinherit.c @@ -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; }