From patchwork Sun Dec 12 15:43:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 32333 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp4314460iog; Sun, 12 Dec 2021 07:44:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMH7A1go9MLTycxihtEd0k/oA4cGuS2llQI0IUSbhl4MJzxU/HqE3CR7hTICEcgUo6f7mo X-Received: by 2002:aa7:c9ce:: with SMTP id i14mr55250049edt.300.1639323847230; Sun, 12 Dec 2021 07:44:07 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dp2si16892373ejc.551.2021.12.12.07.44.06; Sun, 12 Dec 2021 07:44:07 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=UI8h32Gt; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E8D5E68AD8B; Sun, 12 Dec 2021 17:44:04 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-oln040092073097.outbound.protection.outlook.com [40.92.73.97]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 62949680134 for ; Sun, 12 Dec 2021 17:43:58 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHDn4ZTLlFsCBkHNP9xdcfknWlSuTHdiNadYzWorbJ6xTT4Ye3NGRLkMrHmwRAsf85K8lE8uDbJsXFcML3WTby4xZXFnnFwpom/p+0lDfG3qmigPlJPZWSHw4ll5eFdPHjUKSgkWoHuphJVkYjWeHZEPHx2c1dY2GLS/QMnR17X4KSSCbKKZwh1969dpPmqI6bgAwTUnA+HBtURw1mKKRSw/hE5Gx7qmtzrHrh0j2AHYgbVwtEAfC3I9uOpC4FSnREwf/zyis7ZNasIfa+d1WoFjcJBXv5kiKob/A6Q78IAKW+nSa5PBaAhc/8AkDla4GpcCZ2vvQ4Sg2tVz12b+Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KrD6uZmsCeE+C9aYREw0SbMxbEv2RqKvzkmVVvplO8o=; b=DTurO8KQCPayqlwAyMusSf43FumrQkgaxMerm7/CaQsXN2j7QSez7PPSHJlCAotFyuVG22pop/E03ZkyvHIVXi6lRulvDW778c2vAlbHaO8cefgTi55rrGPn02I+cpFJULo5UThnfy2XfamepZCkViY2nIlZN0bQ1KSKwLIZt6H7Mxme34CDoikRPolRG4YQqL43spHNxr87YnUMoLvBdG7UpROGW6l20dqDAqxyWTcJVo6NbQNIeYIdOu372jEhURFfe9xKu+E/zlX0c3JMH97XAUawHQa6lMRtxXkH1BDg/IOl1wVRLCPzvmc/VrY72+tQZCUl0PfrdmaQKs+XQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KrD6uZmsCeE+C9aYREw0SbMxbEv2RqKvzkmVVvplO8o=; b=UI8h32GtP6k4+TVok0hW5CfDVNgtCFnN/atyyLEuIhyGra9AGUEglsCuFpWwyWToTggvmapK1ajS8HUr5fr2sn9e1J6nFFBhUQ7vQP4V9Qizq6++wgf/5ilyDq1UTwxxhiAMGV9dgi12uMkeyPMdMmvqVzUw25XEE8H/KUUaNxcJrYbkDxyVdjp9Bck05tldoTUfhdwpWzQIvX74JsCwo4GwstzEHZE4ukO5/adHvFV4GQXZidEhP1fJV453YmJqUVwR3cX52zEccevh0jYRLAq5R3hnlUpXI+27CAN9gOUT424CPyz+Wwbce6yKGgtv80Udc2XLl3DIPULfX6oE7g== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM6PR03MB4615.eurprd03.prod.outlook.com (2603:10a6:20b:1::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Sun, 12 Dec 2021 15:43:57 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::f0dc:92f5:6bc2:45ca]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::f0dc:92f5:6bc2:45ca%6]) with mapi id 15.20.4778.017; Sun, 12 Dec 2021 15:43:57 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 12 Dec 2021 16:43:49 +0100 Message-ID: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: X-TMN: [THo8ffcJqXjYgvp3IT+nkvJ0tQfuXG1E] X-ClientProxiedBy: AM0PR02CA0142.eurprd02.prod.outlook.com (2603:10a6:20b:28d::9) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20211212154350.1511901-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 651633e6-d105-4d56-fac2-08d9bd86355e X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiRhTeYa9y1Ya27Xypab/6mE37AYKnpe25AAjzrhTHPbYGuqwVLdEAql47YDT2LsVlWYOfNOlfHOzNN1KWnE6laVYO7HWOpI2zGBMONpzgesDxuv/+gVrt+AltwDfcTK7G8KdEF13RSeCCA+VC3pAEZbQzhHYjq/k5i6kfzgbp2Gncg6Kx6wTH36w14oCbM+9RHTic9b2/DHWDkowzcAvlrI3RbiDxAV/2XMUPrsxkmqH/OVzKiIFGIMdRl238xAVhOevOT/Rhn+Ic3BAZ4MgJbDozEIW7UVGT3YNQ0tptAQTm3vwOU3QQ+gZM/nBd8BiiC8S37K11G3HtFKYnC9OBS9j3uHP1Iez9f96GS77tFRUshBOb8CCYzo1pTFyo5gKbmelC0lFf3XciUZzDGxpKPKk6ENxKrbmdbAph87FZxwoCB7SmLZOSXIzrd/AmKoi4TmxT54AVdWjTBq1k9CPmfoodhgpCmDBDzL4ZJdqOAUB1GWNOvSHbhpUfQKRlhSjiAdjDZbReP+H0pYbP9byzTdgucl49eoJXV6uwou/yJOoozbZRKfNgW8G7v7ABvyuIhIG6OG+IV+UtoPktYY46Kzz1JmKwgeWhBrCvEGueO3s6ld7a1inURhzF35PCM8zeOpWNY1cMHFcMeOghXiR+yj4X3+R32zjWHa74yTnZsVBmLehxUzv1PrLZSyk+K1gzdCwuzrWP/35TvM2rrS03WamlEHzJaXvzUJtEP+Bl1PonQgS+V5dFZatknX8oOM3Vo= X-MS-TrafficTypeDiagnostic: AM6PR03MB4615:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VdYUlB+Y+KDBG9ZDsM4hiFJqW4npEb2kcAlpi8llvRgA4QHrIg39oO5j59SgRku7x7OGNWUunxrmGl4P72vqmekS3hBPPAXBrklq4JMK7m71FEwL01JBpqx9npz9X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WD8pjQBUoBZMnIYyuCH3JEYRWbQzctNLq4ayblPmAtJXsN1aI1SdjGdf4TrPzF+/OQ/ItHrV0YYjNw255NsdrWbb4MKsYpK22AvnjiRulJmMdeTFsGTM/d2drUoWqUcQhLbCVYYaNUyDtzJQFlS8rocrRk2w1C03fsiFWBYTCEca6wCrIvgdBbZmTGjr/nP589wERsfnsidvedpeGa2xS68vOMc0X4LfJktLcE5etQxW98K9uXsnlq4dr1BiDXbMTJCu8k+IcAN5nEVzu5cUgbzYPKFFRwohX51EqMReyGlkTCI5JOXR4orpuAI9YVBK5cqCHQk2JkABA+/C41EJqphtMAyrRjcP9RNt06PNStvTVUvLapMUrpC7cH1yye7EpopR2qJTJHRRPD/XC6Rj/kJzG8tO88Mk+n/KjXnJhtg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 651633e6-d105-4d56-fac2-08d9bd86355e X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2021 15:43:57.0194 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR03MB4615 Subject: [FFmpeg-devel] [PATCH 2/3] avformat/moflex: Free AVPackets via av_packet_free() on error X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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" X-TUID: CRSppdS+TWip (This is not a leak as long as av_free() completely frees blank packets.) Signed-off-by: Andreas Rheinhardt --- libavformat/moflex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/moflex.c b/libavformat/moflex.c index 234b0fb06e..67adebe5e0 100644 --- a/libavformat/moflex.c +++ b/libavformat/moflex.c @@ -383,4 +383,5 @@ const AVInputFormat ff_moflex_demuxer = { .read_close = moflex_read_close, .extensions = "moflex", .flags = AVFMT_GENERIC_INDEX, + .flags_internal = FF_FMT_INIT_CLEANUP, };