summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorAlex Smith <aes7mv@virginia.edu>2020-10-16 18:35:58 -0400
committermichael-grunder <michael.grunder@gmail.com>2021-02-25 21:25:17 -0800
commit83c14504257de168c45ae7730a00c930ab17cfa3 (patch)
tree56b0c640dff32b831c2d883d841b9622c790193a /hiredis.c
parentc6646cb19242b0e0966760b38e7df74742b3a7b2 (diff)
read: Add support for the RESP3 bignum type
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hiredis.c b/hiredis.c
index 5591cb9..2c1fb82 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -114,6 +114,7 @@ void freeReplyObject(void *reply) {
case REDIS_REPLY_STRING:
case REDIS_REPLY_DOUBLE:
case REDIS_REPLY_VERB:
+ case REDIS_REPLY_BIGNUM:
hi_free(r->str);
break;
}
@@ -131,7 +132,8 @@ static void *createStringObject(const redisReadTask *task, char *str, size_t len
assert(task->type == REDIS_REPLY_ERROR ||
task->type == REDIS_REPLY_STATUS ||
task->type == REDIS_REPLY_STRING ||
- task->type == REDIS_REPLY_VERB);
+ task->type == REDIS_REPLY_VERB ||
+ task->type == REDIS_REPLY_BIGNUM);
/* Copy string value */
if (task->type == REDIS_REPLY_VERB) {