Skip to content

Commit

Permalink
properly clear all memory from std::vector
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Jan 25, 2022
1 parent 64d7122 commit 31daf17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FWCore/Services/plugins/StallMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ void StallMonitor::postBeginJob() {
}
// Don't need the labels anymore--info. is now part of the
// module-statistics objects.
moduleLabels_.clear();
esModuleLabels_.clear();
decltype(moduleLabels_)().swap(moduleLabels_);
decltype(esModuleLabels_)().swap(esModuleLabels_);

beginTime_ = now();
}
Expand Down

0 comments on commit 31daf17

Please sign in to comment.