[vlc-devel] [PATCH 3/8] input/decoder: fix leak if sout_InputNew fails

Filip Roséen filip at atch.se
Fri Sep 23 15:43:11 CEST 2016


fixes #17427
---
 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;
             }
-- 
2.10.0



More information about the vlc-devel mailing list