From 703dde7da81b73444c170b80793a6342b328bd11 Mon Sep 17 00:00:00 2001 From: David Vossel Date: Fri, 6 Nov 2009 15:06:19 +0000 Subject: [PATCH] Merged revisions 228268 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r228268 | dvossel | 2009-11-06 09:04:24 -0600 (Fri, 06 Nov 2009) | 9 lines fixes memory leak in func_audiohookinherit.c (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/branches/1.6.0@228271 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_audiohookinherit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/funcs/func_audiohookinherit.c b/funcs/func_audiohookinherit.c index f23620456f..64357a3a9a 100644 --- a/funcs/func_audiohookinherit.c +++ b/funcs/func_audiohookinherit.c @@ -72,6 +72,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; }