[vlc-commits] input/decoder: fix leak if DecoderPlaySout fail
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:12 2016 +0200| [f62171173258d6a6d58d8a0d28a8b655802736d5] | committer: Thomas Guillem
input/decoder: fix leak if DecoderPlaySout fail
fixes #17427
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f62171173258d6a6d58d8a0d28a8b655802736d5
---
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;
}
More information about the vlc-commits
mailing list