diff --git a/main/channel.c b/main/channel.c index 64d93c4fe7..9154a2c41f 100644 --- a/main/channel.c +++ b/main/channel.c @@ -10845,7 +10845,9 @@ static struct ast_frame *suppress_framehook_event_cb(struct ast_channel *chan, s if (suppress_frame) { switch (frame->frametype) { case AST_FRAME_VOICE: - ast_frfree(frame); + if (event == AST_FRAMEHOOK_EVENT_READ) { + ast_frfree(frame); + } frame = &ast_null_frame; break; default: