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
34e489cb
Commit
34e489cb
authored
Sep 04, 2015
by
antirez
Browse files
SORT memory leak fixed.
parent
a7c5be18
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sort.c
View file @
34e489cb
...
@@ -579,9 +579,9 @@ void sortCommand(client *c) {
...
@@ -579,9 +579,9 @@ void sortCommand(client *c) {
}
}
/* Cleanup */
/* Cleanup */
if
(
sortval
->
type
==
OBJ_LIST
||
sortval
->
type
==
OBJ_SET
)
for
(
j
=
0
;
j
<
vectorlen
;
j
++
)
for
(
j
=
0
;
j
<
vectorlen
;
j
++
)
decrRefCount
(
vector
[
j
].
obj
);
decrRefCount
(
vector
[
j
].
obj
);
decrRefCount
(
sortval
);
decrRefCount
(
sortval
);
listRelease
(
operations
);
listRelease
(
operations
);
for
(
j
=
0
;
j
<
vectorlen
;
j
++
)
{
for
(
j
=
0
;
j
<
vectorlen
;
j
++
)
{
...
...
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