Skip to content

Commit

Permalink
Fix leak in the buffer vectorMembers when reading SIO frames (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Apr 19, 2024
1 parent 82814a8 commit 3919f8b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/templates/SIOBlock.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 3919f8b

Please sign in to comment.