mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Fix memory issue that crept up with Russell's testing. It is *not* proper to free the frame we get in ast_write.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -582,8 +582,6 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st
|
||||
/* Here's the scoop... middle frame is no longer of use to us */
|
||||
ast_frfree(middle_frame);
|
||||
}
|
||||
/* Yay let's rid ourselves of the start frame */
|
||||
ast_frfree(start_frame);
|
||||
} else {
|
||||
/* No frame was modified, we can just drop our middle frame and pass the frame we got in out */
|
||||
ast_frfree(middle_frame);
|
||||
|
Reference in New Issue
Block a user