diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-12 16:47:12 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-12 16:47:12 +0000 |
commit | da60bd892e599e9c5e2a64306882e80088eb66dc (patch) | |
tree | ea5370863ee78e6fe64740ac33fc2ed25afbff1a /funcs/func_audiohookinherit.c | |
parent | efa9acc1980481883eae0b2538cc430dc78f3498 (diff) |
Merged revisions 229670 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r229670 | dvossel | 2009-11-12 10:44:39 -0600 (Thu, 12 Nov 2009) | 12 lines
Merged revisions 229669 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r229669 | dvossel | 2009-11-12 10:41:49 -0600 (Thu, 12 Nov 2009) | 6 lines
fixes merging error, datastore was being freed in the wrong function.
(closes issue #16219)
Reported by: aragon
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@229671 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_audiohookinherit.c')
-rw-r--r-- | funcs/func_audiohookinherit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/funcs/func_audiohookinherit.c b/funcs/func_audiohookinherit.c index 74f89b9a3..528aed51f 100644 --- a/funcs/func_audiohookinherit.c +++ b/funcs/func_audiohookinherit.c @@ -126,7 +126,6 @@ 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; } @@ -143,6 +142,8 @@ static void audiohook_inheritance_destroy(void *data) while ((inheritable_audiohook = AST_LIST_REMOVE_HEAD(&audiohook_inheritance_datastore->allowed_list, list))) { ast_free(inheritable_audiohook); } + + ast_free(audiohook_inheritance_datastore); } /*! \brief create an audiohook_inheritance_datastore and attach it to a channel |