Skip to content

Commit

Permalink
Merge pull request #46202 from iarspider/iarspider-patches-20241002-3
Browse files Browse the repository at this point in the history
[LLVM Analysis] Fix potential memory leak in ApvAnalysisFactory::constructAuxiliaryApvClasses
  • Loading branch information
cmsbuild authored Oct 3, 2024
2 parents 6b4f1d4 + 431b1d4 commit bbd51d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CalibTracker/SiStripAPVAnalysis/src/ApvAnalysisFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ void ApvAnalysisFactory::constructAuxiliaryApvClasses(ApvAnalysis* theAPV, uint3
theCM = new MedianCommonModeCalculator();
} else {
cout << "Sorry Only Median is available for now, Mean and FastLinear are coming soon" << endl;
delete theCommonMode;
return;
}
} else {
cout << "ApvAnalysisFactory: algorithm " << theAlgorithmType_ << " not supported" << endl;
delete theCommonMode;
return;
}

Expand Down

0 comments on commit bbd51d2

Please sign in to comment.