mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fix memory leak in streamGetEdgeID (#10753)
si is initialized by streamIteratorStart(), we should call streamIteratorStop() on it when done. regression introduced in #9127 (redis 7.0)
This commit is contained in:
parent
00a9d6b314
commit
4a7a4e42db
@ -401,7 +401,7 @@ void streamGetEdgeID(stream *s, int first, int skip_tombstones, streamID *edge_i
|
|||||||
streamID min_id = {0, 0}, max_id = {UINT64_MAX, UINT64_MAX};
|
streamID min_id = {0, 0}, max_id = {UINT64_MAX, UINT64_MAX};
|
||||||
*edge_id = first ? max_id : min_id;
|
*edge_id = first ? max_id : min_id;
|
||||||
}
|
}
|
||||||
|
streamIteratorStop(&si);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Adds a new item into the stream 's' having the specified number of
|
/* Adds a new item into the stream 's' having the specified number of
|
||||||
|
Loading…
Reference in New Issue
Block a user