[ROOT-5649] Cleanup in TKey::ReadObj() Created: 31/Oct/13  Updated: 28/May/14  Resolved: 28/May/14

Status: Closed
Project: ROOT
Component/s: I/O
Affects Version/s: 5.34/00, 6.00.00
Fix Version/s: 6.00.00

Type: Bug Priority: Medium
Reporter: Serguei Linev Assignee: Philippe Canal
Resolution: Fixed Votes: 0
Labels: None
Environment:

Error handling when reading ROOT files


Development:

 Description   

In TKey.cxx, line 804
http://root.cern.ch/root/html/src/TKey.cxx.html#804

Wrong "delete pobj" method is used.
Most probably, cl->Destructor(pobj) must be used.
Same error in line 929.

Method ReadObjectAny() implemented correctly.



 Comments   
Comment by Philippe Canal [ 28/May/14 ]

Hi,

Thanks for this report. TKey has been updated accordingly.

Cheers,
Philippe.

Generated at Sat Sep 21 07:34:04 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.