release no longer valid memoryview