summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lazyfree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lazyfree.c b/src/lazyfree.c
index 31197df2e..2557a7504 100644
--- a/src/lazyfree.c
+++ b/src/lazyfree.c
@@ -52,7 +52,7 @@ size_t lazyfreeGetFreeEffort(robj *obj) {
/* Every consumer group is an allocation and so are the entries in its
* PEL. We use size of the first group's PEL as an estimate for all
* others. */
- if (s->cgroups) {
+ if (s->cgroups && raxSize(s->cgroups)) {
raxIterator ri;
streamCG *cg;
raxStart(&ri,s->cgroups);