Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak from CompressZFP. #1977

Merged
merged 4 commits into from
Feb 21, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/adios2/operator/compress/CompressZFP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ size_t CompressZFP::Compress(const void *dataIn, const Dims &dimensions,

zfp_field_free(field);
zfp_stream_close(stream);
stream_close(bitstream);
return sizeOut;
}

Expand Down
1 change: 1 addition & 0 deletions source/adios2/toolkit/sst/cp/ffs_zfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ extern char *FFS_ZFPCompress(SstStream Stream, const size_t DimCount,
size_t sizeOut = zfp_compress(stream, field);
zfp_field_free(field);
zfp_stream_close(stream);
stream_close(bitstream);
*ByteCountP = sizeOut;
return bufferOut;
}
Expand Down