Skip to content

Fix memory leak in reduction ufuncs #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

mdboom
Copy link
Contributor

@mdboom mdboom commented Apr 19, 2011

Fix memory leak in reduction ufuncs -- the error object was not being dereferenced in the non-error case.

To reproduce, run the following with valgrind:

import numpy as np

x = np.ones((1000,))
for i in range(10):
    y = np.sum(x)

@mwiebe
Copy link
Member

mwiebe commented Apr 22, 2011

Looks good, I've applied it to both master and 1.6.x.

@mwiebe mwiebe closed this Apr 22, 2011
fangerer pushed a commit to hpyproject/numpy-hpy that referenced this pull request Dec 12, 2022
…few aborts

Merge in ~STEPAN.SINDELAR_ORACLE.COM/numpy-hpy from mq/GR-40169 to labs-hpy-port

* commit '34f932dc6d969bfe269499190038cd5097683daa':
  address comments
  clean up
  clean up warnings
  add back PyDateTime_IMPORT
  Add back random import in numpy.__init__
  fixing a bug
  Add few missing pieces
  couple of fixes and ports
  few more fixes
  many fixes and ports to HPy
  fix ref count bug
  fix a bug in np.array(..) and cause import numpy not to work
  port couple of function and remove few aborts
luyahan pushed a commit to plctlab/numpy that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants