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:
Joshua Colp
2007-09-06 22:34:44 +00:00
parent bc8ac382b8
commit a565584d05
2 changed files with 39 additions and 11 deletions

View File

@@ -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);