numpy/numpy — pull request #250 by charris (2012-04-11 19:04:30+00:00)
Title: BUG: Fix segfault when tests are run with python 2.7 debug.

I don't know that the crash is python2.7 specific, it may also occur
in earlier versions of python. The cause was mismatched memory
allocation/deallocation of maskna data.

I'd put this one line fix in directly but, while I think PyDataMem_NEW is the right choice, it needs review. The other option is to change the deallocation type.