Skip to content
Snippets Groups Projects
Commit ea9125d6 authored by Matthias Schroeder's avatar Matthias Schroeder
Browse files

FIX memory leak

parent 428e8ed4
No related branches found
No related tags found
No related merge requests found
...@@ -467,8 +467,10 @@ TH3D* MEMClassifier::GetBTagPDF(const char* prefix, const char* flavour) { ...@@ -467,8 +467,10 @@ TH3D* MEMClassifier::GetBTagPDF(const char* prefix, const char* flavour) {
double MEMClassifier::GetJetBProbability(const char* prefix, const char* flavour, double pt, double eta, double bdisc) { double MEMClassifier::GetJetBProbability(const char* prefix, const char* flavour, double pt, double eta, double bdisc) {
TH3D* h = GetBTagPDF(prefix, flavour); TH3D* h = GetBTagPDF(prefix, flavour);
int i = h->FindBin(pt, std::abs(eta), bdisc); const int i = h->FindBin(pt, std::abs(eta), bdisc);
return h->GetBinContent(i); const double c = h->GetBinContent(i);
delete h;
return c;
} }
MEM::JetProbability MEMClassifier::GetJetBProbabilities( MEM::JetProbability MEMClassifier::GetJetBProbabilities(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment