changeset 12677:bbf011c4e8b4

abr-ladder: fix memleak in copyInfo()
author Aruna <aruna@multicorewareinc.com>
date Mon, 27 Jul 2020 13:40:17 +0530
parents b7f6aae1d5cb
children 244186fe0ab6
files source/abrEncApp.cpp
diffstat 1 files changed, 1 insertions(+-), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/abrEncApp.cpp	Mon Jul 27 13:40:10 2020 +0530
+++ b/source/abrEncApp.cpp	Mon Jul 27 13:40:17 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);