From 3919f8bad7010ba3bcaac48842ba5b0882a821a8 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Fri, 19 Apr 2024 08:40:23 +0200 Subject: [PATCH] Fix leak in the buffer vectorMembers when reading SIO frames (#589) --- python/templates/SIOBlock.cc.jinja2 | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/templates/SIOBlock.cc.jinja2 b/python/templates/SIOBlock.cc.jinja2 index 4fc065b46..ea8948cc6 100644 --- a/python/templates/SIOBlock.cc.jinja2 +++ b/python/templates/SIOBlock.cc.jinja2 @@ -41,9 +41,6 @@ void {{ block_class }}::read(sio::read_device& device, sio::version_type version {% if VectorMembers %} if (not m_subsetColl) { -{% for member in VectorMembers %} - m_buffers.vectorMembers->emplace_back("{{ member.full_type }}", new std::vector<{{ member.full_type }}>()); -{% endfor %} //---- read vector members auto* vecMemInfo = m_buffers.vectorMembers; unsigned size{0};