Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c25a5d3b
Commit
c25a5d3b
authored
Aug 02, 2010
by
antirez
Browse files
memory leak removed from expire propagation code
parent
bcf2995c
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
c25a5d3b
...
@@ -450,7 +450,8 @@ void propagateExpire(redisDb *db, robj *key) {
...
@@ -450,7 +450,8 @@ void propagateExpire(redisDb *db, robj *key) {
if
(
listLength
(
server
.
slaves
))
if
(
listLength
(
server
.
slaves
))
replicationFeedSlaves
(
server
.
slaves
,
db
->
id
,
argv
,
2
);
replicationFeedSlaves
(
server
.
slaves
,
db
->
id
,
argv
,
2
);
decrRefCount
(
key
);
decrRefCount
(
argv
[
0
]);
decrRefCount
(
argv
[
1
]);
}
}
int
expireIfNeeded
(
redisDb
*
db
,
robj
*
key
)
{
int
expireIfNeeded
(
redisDb
*
db
,
robj
*
key
)
{
...
...
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