Skip to content

Commit

Permalink
integer memory leak fixed, thanks to Amit Bakshi for both reporting a…
Browse files Browse the repository at this point in the history
…nd providing a patch
  • Loading branch information
antirez committed Jun 11, 2010
1 parent 4b98ed2 commit 4b5f030
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hiredis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4b5f030

Please sign in to comment.