Skip to content
Snippets Groups Projects
Commit 26c00b91 authored by Shaun Roe's avatar Shaun Roe Committed by Edward Moyse
Browse files

23.0-cppcheck-LWHists

23.0-cppcheck-LWHists
parent 5417bfc4
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
......@@ -26,5 +26,6 @@ inline void LWPool::release(char*c)
assert(m_likelyReleaseArea);
m_likelyReleaseArea->release(c);
if (m_likelyReleaseArea->isUnused()&&!isMotherPool())//NB: Mother pool never releases!!!!
//cppcheck-suppress thisUseAfterFree
freeArea(m_likelyReleaseArea);
}
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
//Preload library for spying on (typical) calls to ROOT histograms.
......@@ -85,6 +85,7 @@ namespace RootSpy {
real = (const char* (*)(void*))dlsym(RTLD_NEXT, "_ZNK6TNamed7GetNameEv");//Fixme: avoid this symbol hardcoding.
if (!real)
std::cout<<"ROOTSPY ERROR: Could not find symbol for TNamed::GetName() through hardcoded mangling."<<std::endl;
return nullptr;
}
return real(tobject);
}
......@@ -95,6 +96,7 @@ namespace RootSpy {
real = (const char* (*)(void*))dlsym(RTLD_NEXT, "_ZNK7TObject9ClassNameEv");//Fixme: avoid this symbol hardcoding.
if (!real)
std::cout<<"ROOTSPY ERROR: Could not find symbol for TObject::GetName() through hardcoded mangling."<<std::endl;
return nullptr;
}
return real(tobject);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment