Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
94af55c5
Commit
94af55c5
authored
Sep 12, 2017
by
antirez
Browse files
Streams: fix memory leak in freeStream().
parent
3a0b78bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
94af55c5
...
@@ -54,6 +54,7 @@ stream *streamNew(void) {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment