[Numpy-discussion] C-API: deallocating a partially filled object array
Robert Kern
robert.kern at gmail.com
Fri Jan 26 14:03:13 CST 2007
Martin Wiechert wrote:
> Hi gurus,
>
> is it (in C) safe to deallocate an array of type NPY_OBJECT, which carries
> NULL pointers?
Possibly, I'm not sure without doing some more code-diving. However, I strongly
doubt that many other operations are safe. Depending on how you got such an
array and how long it's expected to live, you might want to fix the NULL pointers.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion
mailing list