![](https://secure.gravatar.com/avatar/aa37041f6aea8163f7effa8eb03c7560.jpg?s=120&d=mm&r=g)
16 May
2011
16 May
'11
5:09 p.m.
Hi, I think it should give the memory leaking. I have a similar issue. I am wondering if it works fine when using Py_DECREF() in the code. In my case, I tried to decref the PyArrayObject using Py_DECREF() but it gives a segmentation fault. Instead, if I use the PyArray_XDECREF(), it doesn't give any segmentation fault. However, I am not sure whether it gives any memory leaking issue when I use PyArray_XDECREF(). Thanks. Hyunsoo Noh