Skip to content

Commit

Permalink
Merge pull request #8603 from wmtan/FixTypoThatMayCauseMemoryLeak
Browse files Browse the repository at this point in the history
Fix typo spotted by Giulio possibly causing memory leak
  • Loading branch information
ktf committed Mar 31, 2015
2 parents c3a6a0f + 37ceb3c commit 14849a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommonTools/Utils/src/ExpressionVar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ double ExpressionVar::value(const edm::ObjectWithDict& obj) const
}
double ret = objToDouble(val, retType_);
std::vector<bool>::const_reverse_iterator RIB = needsDestructor_.rbegin();
for (std::vector<edm::ObjectWithDict>::reverse_iterator RI = objects_.rbegin(), RE = objects_.rend(); RI != RI; ++RIB, ++RI) {
for (std::vector<edm::ObjectWithDict>::reverse_iterator RI = objects_.rbegin(), RE = objects_.rend(); RI != RE; ++RIB, ++RI) {
if (*RIB) {
RI->typeOf().destruct(RI->address(), false);
}
Expand Down

0 comments on commit 14849a1

Please sign in to comment.