From patchwork Mon Nov 23 19:37:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 24008 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 1B7B944B44C for ; Mon, 23 Nov 2020 21:41:39 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C580068BC7A; Mon, 23 Nov 2020 21:38:44 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CCA4C68BC2A for ; Mon, 23 Nov 2020 21:38:29 +0200 (EET) Received: by mail-wr1-f47.google.com with SMTP id e7so2263264wrv.6 for ; Mon, 23 Nov 2020 11:38:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=ROgZU0gSR5XJiedKfPdrzZ/UilLtDu7090iWggS++dA=; b=cNgR/53aMPiTuJvh4UDmA4s7wdKjBtBS0fS4jBTLLEFZhGJFQCClT54mlaX0h//tTo 1NngwFTSul92jaNhmUpcSoAByO/lbr649JfPwinqj+oMJnEp43kPbR5JQdCwNJGVVL61 4rVKHV9Kobhceoe6oYlY0hHpVcrlfKp2AHaFKvyvxCIdgPi5NZtEEFXWfT7UAk4zDqa+ PulQeFCa2r+Y7t6tBEW1PINAJ8Ka8Jmue9P/Ar0S8wV6Fgn1dLjCQ35uHgxgjAwzvfPh wEOWCkLQ07tzZzO6TrZFQziSlERb94eIPqgp9BEeA4W9+T1l5IIj0YvN2QYquMSVhS8g QKEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=ROgZU0gSR5XJiedKfPdrzZ/UilLtDu7090iWggS++dA=; b=bELZugPlDbUT0q1upsP9YSp1Idwh7P3UKSdTC8MGTlmP7m5hqmGlZEeuZbi2hAJjIV LQlHvF3sQwHkDnteHdJvXegNiI20pTQQ7r/ocQY907XY/et1xKRL8CCufL7C6+HO9EIy RhUr98nYpCiqWsIYd3JtocmY+30Y7K70XKI4Azu+BdcHmX+8GG+tb7a/PEIxUciAeTPj VqaIpLqgcap85wAxlE3ylqmXuwp6wHqEFzuAyN7aEMwV5hGhn2JPZKaUctB7hgp2zPAS 9E3Su9j4NpGxc/wYBjg47/efnBv6we81jMx9WnaQSLzQ6C4InA2yY9U2o6D5QmdE5mL0 e/rw== X-Gm-Message-State: AOAM531F0EEUjvqP7cAJZCWkeJTBl0jH5NEGOzYckJjmK+jzrbn1sOYb wHdOJJeVahZRiHRfbjBDwceweLCMbb+9qA== X-Google-Smtp-Source: ABdhPJx1QmAkUieKY9mrExUrKw/AO7YoDbzK8dUcRC1kjT8aRcVCeE4NTZQwq/3ewf2sSTCUSsriDg== X-Received: by 2002:adf:e5d0:: with SMTP id a16mr1396911wrn.340.1606160308768; Mon, 23 Nov 2020 11:38:28 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id e6sm564086wme.27.2020.11.23.11.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 11:38:28 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 23 Nov 2020 20:37:34 +0100 Message-Id: <20201123193739.1249300-24-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120072116.818090-1-andreas.rheinhardt@gmail.com> References: <20201120072116.818090-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 186/191] avcodec/wavpack: Fix leak on init failure X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavcodec/wavpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 58122c948c..e02a56aa35 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -1712,5 +1712,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_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, };