fix Decompressor memory leak
This commit is contained in:
parent
528f282dc7
commit
d706d32b78
@ -733,6 +733,7 @@ void ObZlibDecompressor::destroy()
|
||||
if (OB_NOT_NULL(zlib_stream_ptr_)) {
|
||||
z_streamp zstream_ptr = static_cast<z_streamp>(zlib_stream_ptr_);
|
||||
inflateEnd(zstream_ptr);
|
||||
allocator_.free(zlib_stream_ptr_);
|
||||
zlib_stream_ptr_ = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user