MCPcopy Create free account
hub / github.com/apache/arrow / ~PyBuffer

Method ~PyBuffer

python/pyarrow/src/arrow/python/common.cc:238–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238PyBuffer::~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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected