vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Fri Apr 20 10:25:11 2018 +0200| [e65aec1c3bb399c5f760c534d1334ffab7079552] | committer: Hugo Beauzée-Luyssen
demux-run: Fix leak when failing to create a decoder > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e65aec1c3bb399c5f760c534d1334ffab7079552 --- test/src/input/demux-run.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/src/input/demux-run.c b/test/src/input/demux-run.c index 22418eddb3..b6b88d95e0 100644 --- a/test/src/input/demux-run.c +++ b/test/src/input/demux-run.c @@ -80,6 +80,8 @@ static es_out_id_t *EsOutAdd(es_out_t *out, const es_format_t *fmt) #ifdef HAVE_DECODERS es_format_Copy(&id->fmt, fmt); id->decoder = test_decoder_create((void *)out->p_sys, &id->fmt); + if (id->decoder == NULL) + es_format_Clean(&id->fmt); #endif debug("[%p] Added ES\n", (void *)id); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
