From 4b5f030d4fa41156390b38d6db8842de78f19dba Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 11 Jun 2010 23:13:49 +0200 Subject: integer memory leak fixed, thanks to Amit Bakshi for both reporting and providing a patch --- hiredis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hiredis.c b/hiredis.c index 4e614ce..f1fe9bc 100644 --- a/hiredis.c +++ b/hiredis.c @@ -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; } -- cgit v1.2.3