Skip to content

Commit

Permalink
[ntuple] fix memory mgmt in unique pointer field
Browse files Browse the repository at this point in the history
  • Loading branch information
jblomer committed Oct 24, 2024
1 parent 2b267e4 commit c97e329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tree/ntuple/v7/src/RField.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3727,8 +3727,7 @@ void ROOT::Experimental::RUniquePtrField::ReadGlobalImpl(NTupleSize_t globalInde
return;

if (!isValidValue) {
valuePtr = malloc(fSubFields[0]->GetValueSize());
CallConstructValueOn(*fSubFields[0], valuePtr);
valuePtr = CallCreateObjectRawPtrOn(*fSubFields[0]);
ptr->reset(reinterpret_cast<char *>(valuePtr));
}

Expand Down

0 comments on commit c97e329

Please sign in to comment.