[x265] [PATCH - x265] abr-ladder: fix memleak in copyInfo()

Aruna Matheswaran aruna at multicorewareinc.com
Mon Jul 27 16:06:32 CEST 2020


Pushed to master and cherry-picked to Release_3.4.

On Mon, Jul 27, 2020 at 7:28 PM Aruna Matheswaran <
aruna at multicorewareinc.com> wrote:

> From d419c7152ada818a61697622b8527549e2a67161 Mon Sep 17 00:00:00 2001
> From: Aruna <aruna at multicorewareinc.com>
> Date: Mon, 27 Jul 2020 19:11:10 +0530
> Subject: [PATCH] abr-ladder: fix memleak in copyInfo()
>
> ---
>  source/abrEncApp.cpp | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/source/abrEncApp.cpp b/source/abrEncApp.cpp
> index 4079fe3a2..fa62ebf63 100644
> --- a/source/abrEncApp.cpp
> +++ b/source/abrEncApp.cpp
> @@ -315,6 +315,7 @@ namespace X265_NS {
>
>          x265_analysis_data *m_analysisInfo =
> &m_parent->m_analysisBuffer[m_id][index];
>
> +        x265_free_analysis_data(m_param, m_analysisInfo);
>          memcpy(m_analysisInfo, src, sizeof(x265_analysis_data));
>          x265_alloc_analysis_data(m_param, m_analysisInfo);
>
> --
> 2.20.1.windows.1
>
>
> --
> Regards,
> *Aruna Matheswaran,*
> Video Codec Engineer,
> Media & AI analytics BU,
>
>
>
>

-- 
Regards,
*Aruna Matheswaran,*
Video Codec Engineer,
Media & AI analytics BU,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200727/cc5f5479/attachment.html>


More information about the x265-devel mailing list