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

master
antirez 2010-06-11 23:13:49 +02:00
parent 4b98ed2dca
commit 4b5f030d4f
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ static redisReply *redisReadIntegerReply(int fd) {
if (buf == NULL) return redisIOError();
r->type = REDIS_REPLY_INTEGER;
r->integer = strtoll(buf,NULL,10);
sdsfree(buf);
return r;
}