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
b3948177
Commit
b3948177
authored
Sep 27, 2019
by
antirez
Browse files
Fix memory leak in RM_UnregisterCommandFilter().
parent
0a07f8ff
Changes
1
Show whitespace changes
Inline
Side-by-side
src/module.c
View file @
b3948177
...
@@ -5036,6 +5036,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
...
@@ -5036,6 +5036,8 @@ int RM_UnregisterCommandFilter(RedisModuleCtx *ctx, RedisModuleCommandFilter *fi
if
(
!
ln
)
return
REDISMODULE_ERR
;
/* Shouldn't happen */
if
(
!
ln
)
return
REDISMODULE_ERR
;
/* Shouldn't happen */
listDelNode
(
ctx
->
module
->
filters
,
ln
);
listDelNode
(
ctx
->
module
->
filters
,
ln
);
zfree
(
filter
);
return
REDISMODULE_OK
;
return
REDISMODULE_OK
;
}
}
...
...
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