vlc | branch: master | Filip Roséen <[email protected]> | Fri Sep 23 15:43:11 2016 +0200| [d25771962457e45f62b90a8d14edbdee415e2752] | committer: Thomas Guillem
input/decoder: fix leak if sout_InputNew fails fixes #17427 Signed-off-by: Thomas Guillem <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d25771962457e45f62b90a8d14edbdee415e2752 --- src/input/decoder.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/decoder.c b/src/input/decoder.c index 0d28bef..e894925 100644 --- a/src/input/decoder.c +++ b/src/input/decoder.c @@ -817,6 +817,9 @@ static void DecoderProcessSout( decoder_t *p_dec, block_t *p_block ) (char *)&p_owner->fmt.i_codec ); p_dec->b_error = true; + if(p_block) + block_Release(p_block); + block_ChainRelease(p_sout_block); break; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
