[Numpy-discussion] Missing Py_DECREF?

Charles R Harris charlesr.harris at gmail.com
Sun Jan 7 19:02:16 CST 2007


In the following lines from the initmultiarray function in
multiarraymodule.c there seems to be a missing Py_DECREF

    MultiArrayError = PyString_FromString ("multiarray.error");
    PyDict_SetItemString (d, "error", MultiArrayError);

Should, I think, be followed by

    Py_DECREF(MultiArrayError);

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070107/4d743a64/attachment.html 


More information about the Numpy-discussion mailing list