Closed ChristianTackeGSI closed 10 months ago
TKey::ReadObj returns an owning pointer. Using dynamic_cast and ignoring the "not castable" case can leak memory.
TKey::ReadObj
Also one std::unique_ptr
std::unique_ptr
See: https://root-forum.cern.ch/t/possible-leak-with-dynamic-cast-and-tkey-readobj/56799 See: https://github.com/root-project/root/pull/13931
Checklist:
TKey::ReadObj
returns an owning pointer. Using dynamic_cast and ignoring the "not castable" case can leak memory.Also one
std::unique_ptr
See: https://root-forum.cern.ch/t/possible-leak-with-dynamic-cast-and-tkey-readobj/56799 See: https://github.com/root-project/root/pull/13931
Checklist: