Status: Closed (View Workflow)
Affects Version/s: 6.12/06
Fix Version/s: 6.18/00
Component/s: C++ modules
This issue was first found by running valgrind on the ProtoDUNE reconstruction software on a SL7 machine. The real problem was pointed out by Paul Russo (FNAL).
1173 void TFormula::HandleParamRanges(TString &formula)
1175 TRegexp rangePattern("\\[[0-9]
1176 Ssiz_t *len = new Ssiz_t();
1177 int matchIdx = 0;
1178 while ((matchIdx = rangePattern.Index(formula, len, matchIdx)) != -1)
1198 // std::cout << "final formula is now " << formula << std::endl;
The memory allocated with "new Ssiz_t()" and assigned to the pointer variable "len" on line 1176 is never released. Paul also verified that this bug still exists in the most recently released version of ROOT.