Permalink
Browse files

fix memory leak on 32-bit builds

  • Loading branch information...
1 parent 834c72f commit 10dea8dc1b6515bb8af6723fed4c28594572cefb @pietern pietern committed May 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 redis.c
View
@@ -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 {

0 comments on commit 10dea8d

Please sign in to comment.