[vlc-devel] [PATCH 5/8] transcode/audio: fix leak if transcode_audio_initialize_encoder fails
Filip Roséen
filip at atch.se
Fri Sep 23 15:43:13 CEST 2016
fixes #17428
---
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,
--
2.10.0
More information about the vlc-devel
mailing list