Release the C schema, if necessary, by calling its release callback
| 59 | |
| 60 | /// Release the C schema, if necessary, by calling its release callback |
| 61 | inline void ArrowSchemaRelease(struct ArrowSchema* schema) { |
| 62 | if (!ArrowSchemaIsReleased(schema)) { |
| 63 | schema->release(schema); |
| 64 | ARROW_C_ASSERT(ArrowSchemaIsReleased(schema), |
| 65 | "ArrowSchemaRelease did not cleanup release callback"); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | /// Query whether the C array is released |
| 70 | inline int ArrowArrayIsReleased(const struct ArrowArray* array) { |
no test coverage detected