Skip to content

MOD-15418 - fix load rdb mem leak - #1007

Merged
TalBarYakar merged 2 commits into
masterfrom
tal.ba/feat/rdb_load_leak
May 17, 2026
Merged

TalBarYakar merged 2 commits into
masterfrom
tal.ba/feat/rdb_load_leak

Conversation

@TalBarYakar

@TalBarYakar TalBarYakar commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Touches RDB deserialization error handling for Cuckoo filters, which is persistence-critical and could affect crash/recovery paths if the new cleanup behavior is wrong.

Overview
Fixes Cuckoo Filter RDB load cleanup to avoid leaking memory on I/O/validation failures by switching the CFRdbLoad errdefer handler from CuckooFilter_Free to CFFree, ensuring both the filter internals and the CuckooFilter struct itself are released on error.

Reviewed by Cursor Bugbot for commit e36a3e1. Bugbot is set up for automated code reviews on this repo. Configure here.

@TalBarYakar TalBarYakar self-assigned this May 14, 2026
@TalBarYakar
TalBarYakar requested review from AvivDavid23 and gabsow May 17, 2026 06:04
@sonarqubecloud

Copy link
Copy Markdown

@TalBarYakar
TalBarYakar merged commit e578feb into master May 17, 2026
47 of 59 checks passed
@TalBarYakar
TalBarYakar deleted the tal.ba/feat/rdb_load_leak branch May 17, 2026 08:16
gabsow pushed a commit that referenced this pull request May 20, 2026
* fix leak

* use existing free funtion to free both
YaacovHazan pushed a commit to redis/redis that referenced this pull request May 25, 2026
## Summary

Bumps `MODULE_VERSION` for RedisBloom, RedisJSON, and RedisTimeSeries
from `v8.7.91` to `v8.8.0`.

| Module          | From    | To     |
|-----------------|---------|--------|
| RedisBloom      | v8.7.91 | v8.8.0 |
| RedisJSON       | v8.7.91 | v8.8.0 |
| RedisTimeSeries | v8.7.91 | v8.8.0 |

## Module changes (v8.7.91 → v8.8.0)

### RedisBloom
([v8.7.91...v8.8.0](RedisBloom/RedisBloom@v8.7.91...v8.8.0))
- MOD-15418 — fix load rdb mem leak
([#1007](RedisBloom/RedisBloom#1007))
- Revert "fix redis version"
([#1010](RedisBloom/RedisBloom#1010))
- bump version to v8.8.0

### RedisJSON
([v8.7.91...v8.8.0](RedisJSON/RedisJSON@v8.7.91...v8.8.0))
- Revert "fix redis version"
([#1597](RedisJSON/RedisJSON#1597))
- bump version v8.8.0

### RedisTimeSeries
([v8.7.91...v8.8.0](RedisTimeSeries/RedisTimeSeries@v8.7.91...v8.8.0))
- MOD-14439 — Detect cluster topology changes during a multi-shard
command and return an appropriate error
([#1930](RedisTimeSeries/RedisTimeSeries#1930))
- Revert Docker and CI redis-ref from 8.8 back to unstable
([#2033](RedisTimeSeries/RedisTimeSeries#2033))
- bump version v8.8.0

## Test plan
- [ ] CI passes for all three modules at the new pinned version
- [ ] \`make all\` builds RedisBloom, RedisJSON, RedisTimeSeries cleanly
against \`unstable\`
- [ ] Module tests run under \`make test\`

🤖 Generated with [Claude Code](https://claude.com/claude-code)



Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
hanzo-dev pushed a commit to hanzoai/redis that referenced this pull request Sep 11, 2026
## Summary

Bumps `MODULE_VERSION` for RedisBloom, RedisJSON, and RedisTimeSeries
from `v8.7.91` to `v8.8.0`.

| Module          | From    | To     |
|-----------------|---------|--------|
| RedisBloom      | v8.7.91 | v8.8.0 |
| RedisJSON       | v8.7.91 | v8.8.0 |
| RedisTimeSeries | v8.7.91 | v8.8.0 |

## Module changes (v8.7.91 → v8.8.0)

### RedisBloom
([v8.7.91...v8.8.0](RedisBloom/RedisBloom@v8.7.91...v8.8.0))
- MOD-15418 — fix load rdb mem leak
([#1007](RedisBloom/RedisBloom#1007))
- Revert "fix redis version"
([#1010](RedisBloom/RedisBloom#1010))
- bump version to v8.8.0

### RedisJSON
([v8.7.91...v8.8.0](RedisJSON/RedisJSON@v8.7.91...v8.8.0))
- Revert "fix redis version"
([#1597](RedisJSON/RedisJSON#1597))
- bump version v8.8.0

### RedisTimeSeries
([v8.7.91...v8.8.0](RedisTimeSeries/RedisTimeSeries@v8.7.91...v8.8.0))
- MOD-14439 — Detect cluster topology changes during a multi-shard
command and return an appropriate error
([#1930](RedisTimeSeries/RedisTimeSeries#1930))
- Revert Docker and CI redis-ref from 8.8 back to unstable
([#2033](RedisTimeSeries/RedisTimeSeries#2033))
- bump version v8.8.0

## Test plan
- [ ] CI passes for all three modules at the new pinned version
- [ ] \`make all\` builds RedisBloom, RedisJSON, RedisTimeSeries cleanly
against \`unstable\`
- [ ] Module tests run under \`make test\`

🤖 Generated with [Claude Code](https://claude.com/claude-code)



Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
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