File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -312,9 +312,9 @@ void ROOT::Experimental::Internal::RNTupleMerger::Merge(std::span<RPageSource *>
312312 // only safe bet is to allocate a buffer big enough to hold as many bytes as the uncompressed
313313 // data.
314314 R__ASSERT (sealedPage.GetBufferSize () < uncompressedSize);
315- sealedPageBuffers[pageBufferBaseIdx + pageIdx] =
316- std::make_unique<unsigned char []>(uncompressedSize);
317- sealedPage.SetBuffer (sealedPageBuffers[pageIdx] .get ());
315+ auto &newBuf = sealedPageBuffers[pageBufferBaseIdx + pageIdx];
316+ newBuf = std::make_unique<unsigned char []>(uncompressedSize);
317+ sealedPage.SetBuffer (newBuf .get ());
318318 } else {
319319 // source column range is uncompressed. We can reuse the sealedPage's buffer since it's big
320320 // enough.
You can’t perform that action at this time.
0 commit comments