Skip to content

[PyROOT] Memory leak when iterating over std::map from Python #9315

@etejedor

Description

@etejedor

Reproducer taken from the forum (https://root-forum.cern.ch/t/memory-leak-using-root-std-map-int-t-float-t/47737):

import ROOT
allChannels = ROOT.std.map(’<Int_t,Float_t>’)()
allChannels[3]=5.
N=0
for n in range(10000000):
    for c in allChannels:
        N+=1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions