mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Streams: fix memory leak in freeStream().
This commit is contained in:
parent
3a0b78bc52
commit
94af55c5ea
@ -54,6 +54,7 @@ stream *streamNew(void) {
|
|||||||
/* Free a stream, including the listpacks stored inside the radix tree. */
|
/* Free a stream, including the listpacks stored inside the radix tree. */
|
||||||
void freeStream(stream *s) {
|
void freeStream(stream *s) {
|
||||||
raxFreeWithCallback(s->rax,(void(*)(void*))lpFree);
|
raxFreeWithCallback(s->rax,(void(*)(void*))lpFree);
|
||||||
|
zfree(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generate the next stream item ID given the previous one. If the current
|
/* Generate the next stream item ID given the previous one. If the current
|
||||||
|
Loading…
x
Reference in New Issue
Block a user