[Numpy-tickets] [NumPy] #394: Memory leak in .argsort() method

NumPy numpy-tickets@scipy....
Sun Apr 1 19:49:08 CDT 2007

#394: Memory leak in .argsort() method
 Reporter:  faltet  |        Owner:  somebody
     Type:  defect  |       Status:  new     
 Priority:  normal  |    Milestone:          
Component:  Other   |      Version:  devel   
 Severity:  normal  |   Resolution:          
 Keywords:          |  
Comment (by charris):

 Is this leak fixed? The code has changed a bit but I don't see the
 specific fix you recommended. It now goes:

         /* Creates new reference op2 */
         if ((op2=(PyAO *)_check_axis(op, &axis, 0))==NULL) return NULL;

         /* Determine if we should use new algorithm or not */
         if (op2->descr->f->argsort[which] != NULL) {
                 ret = (PyArrayObject *)_new_argsort(op2, axis, which);
                 return (PyObject *)ret;


Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/394#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list