Testing freeing a previously allocated memory array that was passed to Python via ctypes. Note that there is a segfault due to freeing of an unallocated space. Cause?