[x265] [PATCH - x265] abr-ladder: fix memleak in copyInfo()
    Aruna Matheswaran 
    aruna at multicorewareinc.com
       
    Mon Jul 27 15:58:04 CEST 2020
    
    
  
>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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200727/0d520865/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 764 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20200727/0d520865/attachment.obj>
    
    
More information about the x265-devel
mailing list