jsommers / pytricia

A library for fast IP address lookup in Python.
GNU Lesser General Public License v3.0
214 stars 22 forks source link

Segmentation fault when calling keys method after list #1

Closed gmjosack closed 9 years ago

gmjosack commented 9 years ago
>>> import pytricia
>>> pyt = pytricia.PyTricia()
>>> pyt["10.0.0.0/8"] = 0
>>> list(pyt)
['10.0.0.0/8']
>>> pyt.keys()
Segmentation fault
jsommers commented 9 years ago

This should be fixed now. The problem was a double-free caused by some faulty assumptions in the iterator destructor code.