]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 228268 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 15:05:47 +0000 (15:05 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 15:05:47 +0000 (15:05 +0000)
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.1@228270 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_audiohookinherit.c

index 7b4b1a7e9bf9b120e7c062b03658404020008d80..9492d283241a54802853a0e5c81f3c1887efd1d6 100644 (file)
@@ -74,6 +74,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;
 }