@@ -102,6 +102,7 @@ void freeReplyObject(void *reply) {
102
102
break ; /* Nothing to free */
103
103
case REDIS_REPLY_ARRAY :
104
104
case REDIS_REPLY_MAP :
105
+ case REDIS_REPLY_ATTR :
105
106
case REDIS_REPLY_SET :
106
107
case REDIS_REPLY_PUSH :
107
108
if (r -> element != NULL ) {
@@ -160,6 +161,7 @@ static void *createStringObject(const redisReadTask *task, char *str, size_t len
160
161
parent = task -> parent -> obj ;
161
162
assert (parent -> type == REDIS_REPLY_ARRAY ||
162
163
parent -> type == REDIS_REPLY_MAP ||
164
+ parent -> type == REDIS_REPLY_ATTR ||
163
165
parent -> type == REDIS_REPLY_SET ||
164
166
parent -> type == REDIS_REPLY_PUSH );
165
167
parent -> element [task -> idx ] = r ;
@@ -192,6 +194,7 @@ static void *createArrayObject(const redisReadTask *task, size_t elements) {
192
194
parent = task -> parent -> obj ;
193
195
assert (parent -> type == REDIS_REPLY_ARRAY ||
194
196
parent -> type == REDIS_REPLY_MAP ||
197
+ parent -> type == REDIS_REPLY_ATTR ||
195
198
parent -> type == REDIS_REPLY_SET ||
196
199
parent -> type == REDIS_REPLY_PUSH );
197
200
parent -> element [task -> idx ] = r ;
@@ -212,6 +215,8 @@ static void *createIntegerObject(const redisReadTask *task, long long value) {
212
215
parent = task -> parent -> obj ;
213
216
assert (parent -> type == REDIS_REPLY_ARRAY ||
214
217
parent -> type == REDIS_REPLY_MAP ||
218
+ parent -> type == REDIS_REPLY_ATTR ||
219
+ parent -> type == REDIS_REPLY_SET ||
215
220
parent -> type == REDIS_REPLY_SET ||
216
221
parent -> type == REDIS_REPLY_PUSH );
217
222
parent -> element [task -> idx ] = r ;
@@ -249,6 +254,7 @@ static void *createDoubleObject(const redisReadTask *task, double value, char *s
249
254
parent = task -> parent -> obj ;
250
255
assert (parent -> type == REDIS_REPLY_ARRAY ||
251
256
parent -> type == REDIS_REPLY_MAP ||
257
+ parent -> type == REDIS_REPLY_ATTR ||
252
258
parent -> type == REDIS_REPLY_SET ||
253
259
parent -> type == REDIS_REPLY_PUSH );
254
260
parent -> element [task -> idx ] = r ;
@@ -267,6 +273,7 @@ static void *createNilObject(const redisReadTask *task) {
267
273
parent = task -> parent -> obj ;
268
274
assert (parent -> type == REDIS_REPLY_ARRAY ||
269
275
parent -> type == REDIS_REPLY_MAP ||
276
+ parent -> type == REDIS_REPLY_ATTR ||
270
277
parent -> type == REDIS_REPLY_SET ||
271
278
parent -> type == REDIS_REPLY_PUSH );
272
279
parent -> element [task -> idx ] = r ;
@@ -287,6 +294,7 @@ static void *createBoolObject(const redisReadTask *task, int bval) {
287
294
parent = task -> parent -> obj ;
288
295
assert (parent -> type == REDIS_REPLY_ARRAY ||
289
296
parent -> type == REDIS_REPLY_MAP ||
297
+ parent -> type == REDIS_REPLY_ATTR ||
290
298
parent -> type == REDIS_REPLY_SET ||
291
299
parent -> type == REDIS_REPLY_PUSH );
292
300
parent -> element [task -> idx ] = r ;
0 commit comments