diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-19 21:18:37 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-19 21:18:37 +0000 |
commit | 71e60db2a2a02472b7261f9a0401baa51cbb6c66 (patch) | |
tree | a4373863555b7439a3b4a88ee37c9cd0cc42ad4f /apps | |
parent | 44825b5e1c895e2bcfc8e7f81a2817a4f4de6e4d (diff) |
Fixes memory leak caused by incorrectly freeing mixmonitor
(closes issue #15699)
Reported by: edantie
Patches:
mixmonitor.patch uploaded by edantie (license 862)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@213103 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_mixmonitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index 3f784f730..50cc64fb2 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -388,7 +388,7 @@ static void launch_monitor_thread(struct ast_channel *chan, const char *filename /* Setup the actual spy before creating our thread */ if (ast_audiohook_init(&mixmonitor->audiohook, AST_AUDIOHOOK_TYPE_SPY, mixmonitor_spy_type)) { - free(mixmonitor); + mixmonitor_free(mixmonitor); return; } @@ -404,7 +404,7 @@ static void launch_monitor_thread(struct ast_channel *chan, const char *filename mixmonitor_spy_type, chan->name); /* Since we couldn't add ourselves - bail out! */ ast_audiohook_destroy(&mixmonitor->audiohook); - free(mixmonitor); + mixmonitor_free(mixmonitor); return; } |