Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions io/io/src/TFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,6 @@ Int_t TFile::Recover()

if (fWritable && !fFree) fFree = new TList;

TKey *key;
Int_t nrecov = 0;
nwheader = 1024;
Int_t nread = nwheader;
Expand Down Expand Up @@ -2171,14 +2170,15 @@ Int_t TFile::Recover()
TClass *tclass = TClass::GetClass(classname);
if (seekpdir == fSeekDir && tclass && !tclass->InheritsFrom(TFile::Class())
&& strcmp(classname,"TBasket")) {
key = new TKey(this);
TKey *key = new TKey(this);
key->ReadKeyBuffer(bufread);
if (!strcmp(key->GetName(),"StreamerInfo")) {
fSeekInfo = seekkey;
SafeDelete(fInfoCache);
fNbytesInfo = nbytes;
delete key;
} else {
AppendKey(key);
AppendKey(key); // ownership transferred, do not to delete key here
nrecov++;
SetBit(kRecovered);
Info("Recover", "%s, recovered key %s:%s at address %lld",GetName(),key->GetClassName(),key->GetName(),idcur);
Expand Down
Loading