| 236 | } |
| 237 | |
| 238 | PyBuffer::~PyBuffer() { |
| 239 | // GH-38626: destructor may be called after the Python interpreter is finalized. |
| 240 | if (Py_IsInitialized() && data_ != nullptr) { |
| 241 | PyAcquireGIL lock; |
| 242 | PyBuffer_Release(&py_buf_); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | } // namespace py |
| 247 | } // namespace arrow |
nothing calls this directly
no outgoing calls
no test coverage detected