diff --git a/src/object.c b/src/object.c index 082689219..78f20a2b2 100644 --- a/src/object.c +++ b/src/object.c @@ -880,7 +880,7 @@ size_t objectComputeSize(robj *key, robj *o, size_t sample_size, int dbid) { } } else if (o->type == OBJ_STREAM) { stream *s = o->ptr; - asize = sizeof(*o); + asize = sizeof(*o)+sizeof(*s); asize += streamRadixTreeMemoryUsage(s->rax); /* Now we have to add the listpacks. The last listpack is often non