Skip to content

Commit

Permalink
Merge pull request cms-sw#21131 from dmitrijus/csc_stack_fix
Browse files Browse the repository at this point in the history
Fix stack-use-after-scope in CSCMonitor.
  • Loading branch information
cmsbuild authored Nov 2, 2017
2 parents 67026de + cbb79d6 commit 02ffcb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DQM/CSCMonitorModule/plugins/CSCDQM_Dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ void Dispatcher::book() {

for (size_t i = 0; i < parameters.size(); i++) {
ParHistoDef histoD(parameters[i]);
HistoBookRequest req(parameters[i], config->getFOLDER_PAR(), -1.0f);
auto histodef = HistoDef(parameters[i]);
HistoBookRequest req(histodef, config->getFOLDER_PAR(), -1.0f);
MonitorObject* me = provider->bookMonitorObject(req);
cache.put(histoD, me);
}
Expand Down

0 comments on commit 02ffcb7

Please sign in to comment.