Skip to content

Commit

Permalink
fix QAT codec not closed
Browse files Browse the repository at this point in the history
  • Loading branch information
marin-ma committed Nov 24, 2023
1 parent 41b8850 commit 9130013
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/core/utils/qat/QatCodec.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class QatZipCodec : public arrow::util::Codec {
protected:
explicit QatZipCodec(int compressionLevel) : compressionLevel_(compressionLevel) {}

~QatZipCodec() {
(void)qzTeardownSession(&qzSession_);
(void)qzClose(&qzSession_);
}

arrow::Result<int64_t> Decompress(int64_t inputLen, const uint8_t* input, int64_t outputLen, uint8_t* output)
override {
uint32_t compressedSize = static_cast<uint32_t>(inputLen);
Expand Down

0 comments on commit 9130013

Please sign in to comment.