[Numpy-discussion] memory de-allocation problems running 'digitize'

Stefan van der Walt stefan at sun.ac.za
Thu May 4 09:08:05 EDT 2006


Hi everyone,

Albert Strasheim and I found a memory de-allocation error in
_compiled_base_.c, which manifests itself when running 'digitize'.

This code triggers the bug:

import numpy as N
for i in range(100):
    N.digitize([1,2,3,4],[1,3])
    N.digitize([0,1,2,3,4],[1,3])

The ticket, with valgrind output, is filed at

http://projects.scipy.org/scipy/numpy/ticket/95

A docstring describing what 'digitize' does would also be a useful
addition.

Regards
Stéfan




More information about the NumPy-Discussion mailing list