Skip to content

Memory leak in _insert when using rank 0 input (Trac #572) #1170

@numpy-gitbot

Description

@numpy-gitbot

Original ticket http://projects.scipy.org/numpy/ticket/572 on 2007-08-24 by @cournape, assigned to unknown.

The function _insert has a memory leak, and this shows when using for example cdf functions of distributions classes in scipy.stats (see scipy #1074).

The fix is trivial: just call Py_DECREF on ainput in rank 0 case, as in general case (the attached patch avoids separate code path for memory cleaning instead).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions