From patchwork Wed Apr 5 20:23:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Foucu X-Patchwork-Id: 3311 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.44.195 with SMTP id s186csp361046vss; Wed, 5 Apr 2017 13:23:47 -0700 (PDT) X-Received: by 10.28.97.2 with SMTP id v2mr19758766wmb.88.1491423827891; Wed, 05 Apr 2017 13:23:47 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id j187si25797492wmg.107.2017.04.05.13.23.47; Wed, 05 Apr 2017 13:23:47 -0700 (PDT) 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=@gmail.com; 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=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 34621687EE8; Wed, 5 Apr 2017 23:23:42 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg0-f41.google.com (mail-pg0-f41.google.com [74.125.83.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E6D10680964 for ; Wed, 5 Apr 2017 23:23:34 +0300 (EEST) Received: by mail-pg0-f41.google.com with SMTP id 81so14715587pgh.2 for ; Wed, 05 Apr 2017 13:23:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=3TOAvfD/7/n6pj1r0/KXfhmAK7OmGM4lt/6RYGUoUm8=; b=ufZIvSDxgpvn3qBa8RhRAsaY1J19ixontBTs78WyHGZExXwixjFcucGNyyQqBhtlQ3 XSZWkpa3uIx05vWVChSNi5h7RnMoM2bK5tEZE/jwIqWJd9i/COZdscwpCBfmRyMTOFwu /xHzvDzo8qsxn8aISOVgRIcecBrlytCLyVocHPPtjMu/2qX2W+/W59iMoy+xG/wOzJWh RUPkgNAVULqehhfF+ZY+2AOJ2CZNslS/tJ+1nSLDuMtp0ejLlMPKVQU5F75ADubtPv2N JEHwzNxNG6G0rjPipfrETui1GnSj8kF66gh0Ww6vNaV0KhJgBhThmaj3Jj+dueMB4SYb 5gRA== 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; bh=3TOAvfD/7/n6pj1r0/KXfhmAK7OmGM4lt/6RYGUoUm8=; b=I1w1CHZl/2MJVkwKH1EAmD8RxjIhXp7SCeS/s5n6Lwq9G+d3p54kA8conGrLKTKMHO zM3cbQ7BvACIBxkauxRU50A7VnuU/r4VPl5Aj5tBr+gdGrb0HJtDNO2cSle3TuRXAmhe Nonhwek+kWCAY9wpyJn5PxNPb4IJ7M0HVGqs7Zl77V0JSbPSPtLgy2LNvVrEkKT3JvbC Q7UnTD8pHDBlYTzMFYNQtPurHVwxZabTaMOvT1dmhtlmI8n/MIrvndNDJxd4JSpj6JYL D2Kg1PM+OfC4ecAUvjEyXVe1qfFINL6ukqsrICYwK8DLYLMYuUOzoVVswunnOEJPPYID 6pTw== X-Gm-Message-State: AFeK/H2hYMs92mWYFJjeuAIRPHtMZ1VTVzAfl9FfaJa4+BakGFtDni869PLbjq1hef6lEQ== X-Received: by 10.98.75.221 with SMTP id d90mr30689431pfj.107.1491423815165; Wed, 05 Apr 2017 13:23:35 -0700 (PDT) Received: from blackrock2.mtv.corp.google.com ([100.98.24.64]) by smtp.gmail.com with ESMTPSA id h25sm39080240pfk.119.2017.04.05.13.23.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Apr 2017 13:23:34 -0700 (PDT) From: Thierry Foucu To: ffmpeg-devel@ffmpeg.org Date: Wed, 5 Apr 2017 13:23:31 -0700 Message-Id: <20170405202331.11442-1-tfoucu@gmail.com> X-Mailer: git-send-email 2.12.2.715.g7642488e1d-goog Subject: [FFmpeg-devel] [PATCH] libavformat/mov: Fix memory leak, need to free the chapter tracks array 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: Thierry Foucu MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mov.c b/libavformat/mov.c index 90bc2499da..f2296f8917 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5794,6 +5794,7 @@ static int mov_read_close(AVFormatContext *s) av_freep(&mov->fragment_index_data); av_freep(&mov->aes_decrypt); + av_freep(&mov->chapter_tracks); return 0; }