summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-09-12 10:54:20 +0200
committerantirez <antirez@gmail.com>2017-11-04 17:39:26 +0100
commit8ed48e832d5b3e6e8849be29baca929b0dd7b9a0 (patch)
tree092fe2b98291eba32865658ca896413b9a8276ac
parent1b25d8af1a81f7de2bab6488b3f1079c6228c9bb (diff)
downloadredis-8ed48e832d5b3e6e8849be29baca929b0dd7b9a0.tar.gz
Streams: fix memory leak in freeStream().
-rw-r--r--src/t_stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/t_stream.c b/src/t_stream.c
index 84e0541e0..3b0072ec8 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -54,6 +54,7 @@ stream *streamNew(void) {
/* Free a stream, including the listpacks stored inside the radix tree. */
void freeStream(stream *s) {
raxFreeWithCallback(s->rax,(void(*)(void*))lpFree);
+ zfree(s);
}
/* Generate the next stream item ID given the previous one. If the current