[Numpy-svn] [numpy/numpy] 0a0158: BUG: Decref subspace when subspace is 0-d in fancy...

GitHub noreply@github....
Mon Jun 10 17:24:09 CDT 2013


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 0a015869a2a1f94106a184811a1a898b41dc4ef9
      https://github.com/numpy/numpy/commit/0a015869a2a1f94106a184811a1a898b41dc4ef9
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-06-09 (Sun, 09 Jun 2013)

  Changed paths:
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  BUG: Decref subspace when subspace is 0-d in fancy indexing

Not decrefing it causes a major memory leak. This adapts the
automated tests to cover this case as well and adds refcounting
to it. Replaces some 'skip' with 0s, but I believe the skip
tests are not that important. Added 1-d special case tests
using the same indices as the multi-dim test though.

Thanks to Julian Taylor for noting the bug.


  Commit: 16c47cfc676958bf0907bef81849c94c1d0fa52f
      https://github.com/numpy/numpy/commit/16c47cfc676958bf0907bef81849c94c1d0fa52f
  Author: Sebastian Berg <sebastian@sipsolutions.net>
  Date:   2013-06-10 (Mon, 10 Jun 2013)

  Changed paths:
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  TST: Refactor some test_indexing doc strings


  Commit: 4ed88a8f9520a1f877f62724de4ea7ae3fc738af
      https://github.com/numpy/numpy/commit/4ed88a8f9520a1f877f62724de4ea7ae3fc738af
  Author: Charles Harris <charlesr.harris@gmail.com>
  Date:   2013-06-10 (Mon, 10 Jun 2013)

  Changed paths:
    M numpy/core/src/multiarray/mapping.c
    M numpy/core/tests/test_indexing.py

  Log Message:
  -----------
  Merge pull request #3417 from seberg/subspace-decref

BUG: Decref subspace when subspace is 0-d in fancy indexing


Compare: https://github.com/numpy/numpy/compare/75cdf3d82e96...4ed88a8f9520


More information about the Numpy-svn mailing list