Skip to content

Commit e4f80e4

Browse files
guitargeekanigamova
authored andcommitted
Fix remaining memory leak of rebinned histograms in ShapeTools
Analogous to 8bd0f6d for a second case that I overlooked before.
1 parent 69ac0b6 commit e4f80e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/ShapeTools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ def shape2Pdf(self, shape, channel, process, _cache=None):
12651265
if self.options.useHistPdf == "never":
12661266
shape = self.rebinH1(shape)
12671267
tlist = ROOT.TList()
1268+
tlist.SetOwner(True)
12681269
tlist.Add(shape)
12691270
if channelBinParFlag:
12701271
rhp = ROOT.CMSHistFunc(

0 commit comments

Comments
 (0)