summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2014-11-04 19:46:33 +0000
committerCorey Farrell <git@cfware.com>2014-11-04 19:46:33 +0000
commit97e1c7f3a9223981ee910bb820bb4c5fe70d18e9 (patch)
treef73c2dc68cd2ad45f5f8c2a61bf5ff010847d78e /funcs
parent9f2874639d039306d66804a90436a3c5f9ee07ee (diff)
func_talkdetect: Fix stasis message leak in audiohook callback.
ASTERISK-24482 #close Reported by: Corey Farrell Review: https://reviewboard.asterisk.org/r/4142/ ........ Merged revisions 427203 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 427204 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427205 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs')
-rw-r--r--funcs/func_talkdetect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_talkdetect.c b/funcs/func_talkdetect.c
index f127fa3d7..ccc74fd7f 100644
--- a/funcs/func_talkdetect.c
+++ b/funcs/func_talkdetect.c
@@ -218,6 +218,7 @@ static int talk_detect_audiohook_cb(struct ast_audiohook *audiohook, struct ast_
blob);
if (message) {
stasis_publish(ast_channel_topic(chan), message);
+ ao2_ref(message, -1);
}
ast_json_unref(blob);