changeset 12678:2d287c472f05 Release_3.4

abr-ladder: fix memleak in copyInfo()
author Aruna <aruna@multicorewareinc.com>
date Mon, 27 Jul 2020 13:47:31 +0530
parents b0b0553471a5
children 882b00bc0b52
files source/abrEncApp.cpp
diffstat 1 files changed, 1 insertions(+-), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/abrEncApp.cpp	Tue Jul 07 04:41:38 2020 +0530
+++ b/source/abrEncApp.cpp	Mon Jul 27 13:47:31 2020 +0530
@@ -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);