Skip to content

fix memory leak and parameter type in cached_ifstream - #21

Merged
g4197 merged 1 commit into
thustorage:mainfrom
yuhuifishash:fix_cached_io
Sep 8, 2026
Merged

g4197 merged 1 commit into
thustorage:mainfrom
yuhuifishash:fix_cached_io

Conversation

@yuhuifishash

Copy link
Copy Markdown
Contributor

Fix two bugs in cached_io.h:

  1. cached_ifstream destructor was not freeing memory, leading to memory leaks during index construction.

  2. initial_offset in cached_ifstream constructor had an incorrect parameter type, causing I/O errors when initial_offset > 4GB.

@g4197
g4197 merged commit b9ec4ba into thustorage:main Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants