From 239e8beefa8f8d9e8db68267e74fb1fb2832e7e8 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 23 Jun 2016 16:12:59 +0200 Subject: [PATCH] Minor change to conform PR #3331 to Redis code base style. Also avoid "static" in order to have symbols during crashes. --- src/module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module.c b/src/module.c index 62efa373a..f5921d8f2 100644 --- a/src/module.c +++ b/src/module.c @@ -1457,9 +1457,8 @@ static void zsetKeyReset(RedisModuleKey *key) /* Stop a sorted set iteration. */ void RM_ZsetRangeStop(RedisModuleKey *key) { /* Free resources if needed. */ - if (key->ztype == REDISMODULE_ZSET_RANGE_LEX) { + if (key->ztype == REDISMODULE_ZSET_RANGE_LEX) zslFreeLexRange(&key->zlrs); - } /* Setup sensible values so that misused iteration API calls when an * iterator is not active will result into something more sensible * than crashing. */