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
hiredis
Commits
4b5f030d
Commit
4b5f030d
authored
Jun 11, 2010
by
antirez
Browse files
integer memory leak fixed, thanks to Amit Bakshi for both reporting and providing a patch
parent
4b98ed2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
4b5f030d
...
@@ -129,6 +129,7 @@ static redisReply *redisReadIntegerReply(int fd) {
...
@@ -129,6 +129,7 @@ static redisReply *redisReadIntegerReply(int fd) {
if
(
buf
==
NULL
)
return
redisIOError
();
if
(
buf
==
NULL
)
return
redisIOError
();
r
->
type
=
REDIS_REPLY_INTEGER
;
r
->
type
=
REDIS_REPLY_INTEGER
;
r
->
integer
=
strtoll
(
buf
,
NULL
,
10
);
r
->
integer
=
strtoll
(
buf
,
NULL
,
10
);
sdsfree
(
buf
);
return
r
;
return
r
;
}
}
...
...
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