[vlc-commits] transcode/audio: fix leak if transcode_audio_initialize_encoder fails
Filip Roséen
git at videolan.org
Fri Sep 23 16:03:29 CEST 2016
vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Sep 23 15:43:13 2016 +0200| [c463ea09cd7c07609e8b27ac0755ea252dd20d4c] | committer: Thomas Guillem
transcode/audio: fix leak if transcode_audio_initialize_encoder fails
fixes #17428
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c463ea09cd7c07609e8b27ac0755ea252dd20d4c
---
modules/stream_out/transcode/audio.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/stream_out/transcode/audio.c b/modules/stream_out/transcode/audio.c
index da235ee..dc465e6 100644
--- a/modules/stream_out/transcode/audio.c
+++ b/modules/stream_out/transcode/audio.c
@@ -245,6 +245,10 @@ int transcode_audio_process( sout_stream_t *p_stream,
if( transcode_audio_initialize_encoder( id, p_stream ) )
{
msg_Err( p_stream, "cannot create audio chain" );
+
+ block_Release( in );
+ block_Release( p_audio_buf );
+
return VLC_EGENERIC;
}
if( unlikely( transcode_audio_initialize_filters( p_stream, id, p_sys,
More information about the vlc-commits
mailing list