]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix ast_writestream leaks
authorCorey Farrell <git@cfware.com>
Sun, 2 Nov 2014 08:05:00 +0000 (08:05 +0000)
committerCorey Farrell <git@cfware.com>
Sun, 2 Nov 2014 08:05:00 +0000 (08:05 +0000)
commit3ee2514cca6e5338c48976ae505400ecb95fc5b5
treedad67efc92dd17c1311dfa6a35b4e3606a000b50
parent53db30a3c804f201725e8133fd32cd4909c75899
Fix ast_writestream leaks

Fix cleanup in __ast_play_and_record where others[x] may be leaked.
This was caught where prepend != NULL && outmsg != NULL, once
realfile[x] == NULL any further others[x] would be leaked. A cleanup
block was also added for prepend != NULL && outmsg == NULL.

11+: Fix leak of ast_writestream recording_fs in
app_voicemail:leave_voicemail.

ASTERISK-24476 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4138/
........

Merged revisions 427023 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 427024 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@427025 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_voicemail.c
main/app.c