[vlc-commits] stream_out/transcode: fix memory-leak on transcode_video_encoder_open failure

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:10 2016 +0200| [a16d739d3f851b3366285bfe074a7868842d7f26] | committer: Thomas Guillem

stream_out/transcode: fix memory-leak on transcode_video_encoder_open failure

fixes #17426

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a16d739d3f851b3366285bfe074a7868842d7f26
---

 modules/stream_out/transcode/video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index b9cae2b..50f98f0 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -803,6 +803,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_sys_t *id,
             if( transcode_video_encoder_open( p_stream, id ) != VLC_SUCCESS )
             {
                 picture_Release( p_pic );
+                block_Release( in );
                 transcode_video_close( p_stream, id );
                 id->b_transcode = false;
                 return VLC_EGENERIC;



More information about the vlc-commits mailing list