summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2016-06-23 16:12:59 +0200
committerantirez <antirez@gmail.com>2016-06-23 16:14:16 +0200
commitc0ca87dcc09212053e4718d9f78a2127ce33ef85 (patch)
treeda6e3116c427e93888adc8b2ed0d39bde819d8cb /src
parenta66dd43331f278e000f222aa63e36922f14f3c21 (diff)
downloadredis-c0ca87dcc09212053e4718d9f78a2127ce33ef85.tar.gz
Minor change to conform PR #3331 to Redis code base style.
Also avoid "static" in order to have symbols during crashes.
Diffstat (limited to 'src')
-rw-r--r--src/module.c3
1 files changed, 1 insertions, 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. */