From 94af55c5ea55890ed5e3afdb9bb802d88d61eac7 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 12 Sep 2017 10:54:20 +0200 Subject: [PATCH] Streams: fix memory leak in freeStream(). --- src/t_stream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/t_stream.c b/src/t_stream.c index 84e0541e..3b0072ec 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