Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix memory leak on 32-bit builds

  • Loading branch information...
commit 10dea8dc1b6515bb8af6723fed4c28594572cefb 1 parent 834c72f
@pietern pietern authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  redis.c
View
2  redis.c
@@ -2927,8 +2927,8 @@ static robj *createStringObjectFromLongLong(long long value) {
incrRefCount(shared.integers[value]);
o = shared.integers[value];
} else {
- o = createObject(REDIS_STRING, NULL);
if (value >= LONG_MIN && value <= LONG_MAX) {
+ o = createObject(REDIS_STRING, NULL);
o->encoding = REDIS_ENCODING_INT;
o->ptr = (void*)((long)value);
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.