aboutsummaryrefslogtreecommitdiffstats
path: root/main/audiohook.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 22:34:44 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-06 22:34:44 +0000
commit6a6c524ff80cbeb2c99c558e1cbe3eef131aba3c (patch)
tree0d601f8367a09640b2f7557ec4333fe90d293ca5 /main/audiohook.c
parentbfccbe504583ec5c0712ee8dec3e9ed3e4fef37a (diff)
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: http://svn.digium.com/svn/asterisk/trunk@81858 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/audiohook.c')
-rw-r--r--main/audiohook.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/main/audiohook.c b/main/audiohook.c
index cddfd1035..d1dc6d0fd 100644
--- a/main/audiohook.c
+++ b/main/audiohook.c
@@ -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);