numpy/numpy — pull request #3417 by seberg (2013-06-09 17:17:50+00:00)
Title: 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. Unfortunatly it makes the tests quite a bit slower. If
they get too slow, they could be marked as slow.

Thanks to Julian Taylor for noting the bug.