numpy/numpy — pull request #400 by mwiebe (2012-08-31 07:54:26+00:00)
Title: BUG: Fix ticket #1588/gh issue #398, refcount error in clip

This hopefully does the trick, it fixes the crash for me.

This patch enforces a strict dichotomy for the variables 'indescr'
and 'newdescr', so they are either NULL, or they own a reference.
Following the consequences of this allowed the reference error
to be tracked down.