Commit 4b5f030d authored by antirez's avatar antirez
Browse files

integer memory leak fixed, thanks to Amit Bakshi for both reporting and providing a patch

parent 4b98ed2d
...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment