Skip to content

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