mirror of
https://github.com/redis/redis.git
synced 2026-01-10 22:18:11 -05:00
This PR fixes a bug in the `hnsw_cursor_free` function where the prev pointer was never updated during cursor list traversal. As a result, if the cursor being freed was not the head of the list, it would not be correctly unlinked, potentially causing memory leaks or corruption of the cursor list. Note that since `hnsw_cursor_free()` is never used for now, this PR does not actually fix any bug.