summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c1
1 files changed, 1 insertions, 0 deletions
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;
}