[vlc-devel] [PATCH 4/8] input/decoder: fix leak if DecoderPlaySout fail

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


fixes #FINISH
---
 src/input/decoder.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index e894925..a736143 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -838,6 +838,10 @@ static void DecoderProcessSout( decoder_t *p_dec, block_t *p_block )
                 p_dec->b_error = true;
 
                 /* Cleanup */
+
+                if( p_block )
+                    block_Release( p_block );
+
                 block_ChainRelease( p_next );
                 return;
             }
-- 
2.10.0



More information about the vlc-devel mailing list