Commit 8bd0f6d
Fix memory leak of rebinned histograms in ShapeTools
Mark the TList that holds the rebinned histograms as the owner of the
contained objects, so that they get properly deleted after PyROOT
reliquishes the ownership during `TList::Add()`.
This was detected by the strict memory policy in ROOT master
(root-project/root#13593), where this ownership
problem manifested as a segfault from dangling references.1 parent 6a5a27e commit 8bd0f6d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| 949 | + | |
949 | 950 | | |
950 | 951 | | |
951 | 952 | | |
| |||
0 commit comments