[Numpy-discussion] Memory allocation cleanup