From 6d3a064251c6d1d8e9491e916c8cbac1c16ddb2f Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Mon, 23 Nov 2020 04:09:56 +0100 Subject: [PATCH] avcodec/wavpack: Fix leak on init failure Signed-off-by: Andreas Rheinhardt (cherry picked from commit fd5d66af744462a97237fa0474e77924c71729ec) --- libavcodec/wavpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index f77548e5a5..fc72300511 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -1713,5 +1713,5 @@ AVCodec ff_wavpack_decoder = { .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, - .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_ALLOCATE_PROGRESS, };