Skip to content

Commit

Permalink
Fix a memory leak
Browse files Browse the repository at this point in the history
Before ROOT allocated the member arrays of layout_ of the newObj, that
are then overwritten by ROOTReadStreamer without deallocation. Setting
layout_ as the target as well tells ROOT to not to do those allocations.
  • Loading branch information
makortel committed Jan 11, 2023
1 parent 52c0dac commit 44d861b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
targetClass="portabletest::TestHostCollection"
version="[1-]"
source="portabletest::TestSoA layout_;"
target="buffer_"
target="buffer_,layout_"
embed="false">
<![CDATA[
portabletest::TestHostCollection::ROOTReadStreamer(newObj, onfile.layout_);
Expand Down

0 comments on commit 44d861b

Please sign in to comment.