Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
10dea8dc
Commit
10dea8dc
authored
May 20, 2010
by
Pieter Noordhuis
Browse files
fix memory leak on 32-bit builds
parent
834c72fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
10dea8dc
...
@@ -2927,8 +2927,8 @@ static robj *createStringObjectFromLongLong(long long value) {
...
@@ -2927,8 +2927,8 @@ static robj *createStringObjectFromLongLong(long long value) {
incrRefCount
(
shared
.
integers
[
value
]);
incrRefCount
(
shared
.
integers
[
value
]);
o
=
shared
.
integers
[
value
];
o
=
shared
.
integers
[
value
];
}
else
{
}
else
{
o
=
createObject
(
REDIS_STRING
,
NULL
);
if
(
value
>=
LONG_MIN
&&
value
<=
LONG_MAX
)
{
if
(
value
>=
LONG_MIN
&&
value
<=
LONG_MAX
)
{
o
=
createObject
(
REDIS_STRING
,
NULL
);
o
->
encoding
=
REDIS_ENCODING_INT
;
o
->
encoding
=
REDIS_ENCODING_INT
;
o
->
ptr
=
(
void
*
)((
long
)
value
);
o
->
ptr
=
(
void
*
)((
long
)
value
);
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment