Skip to content

Commit

Permalink
release if not null
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Jan 18, 2024
1 parent 39653d8 commit a31f76a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pantab/src/pantab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,9 @@ throw nb::type_error(

static auto releaseArrowStream(void *ptr) noexcept -> void {
auto stream = static_cast<ArrowArrayStream *>(ptr);
// TODO: this probably leaks?
// ArrowArrayStreamRelease(stream);
if (stream->release != nullptr) {
ArrowArrayStreamRelease(stream);
}
}

///
Expand Down

0 comments on commit a31f76a

Please sign in to comment.