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
53476b82
Commit
53476b82
authored
Mar 26, 2010
by
Pieter Noordhuis
Browse files
removed unnecessary refcount increase that caused the HINCRBY memleak
parent
01426b05
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
53476b82
...
@@ -6021,8 +6021,6 @@ static void hincrbyCommand(redisClient *c) {
...
@@ -6021,8 +6021,6 @@ static void hincrbyCommand(redisClient *c) {
value
+=
incr
;
value
+=
incr
;
hval
=
createObject
(
REDIS_STRING
,
sdscatprintf
(
sdsempty
(),
"%lld"
,
value
));
hval
=
createObject
(
REDIS_STRING
,
sdscatprintf
(
sdsempty
(),
"%lld"
,
value
));
tryObjectEncoding
(
hval
);
tryObjectEncoding
(
hval
);
incrRefCount
(
hval
);
if
(
dictReplace
(
o
->
ptr
,
c
->
argv
[
2
],
hval
))
{
if
(
dictReplace
(
o
->
ptr
,
c
->
argv
[
2
],
hval
))
{
incrRefCount
(
c
->
argv
[
2
]);
incrRefCount
(
c
->
argv
[
2
]);
}
}
...
...
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