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
6617f170
Unverified
Commit
6617f170
authored
Nov 10, 2022
by
Binbin
Committed by
GitHub
Nov 10, 2022
Browse files
Add missing lpFree for listpack test, fix valgrind daily (#11492)
Add missing lpFree, introduced in #11290
parent
4e472a1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/listpack.c
View file @
6617f170
...
...
@@ -2224,6 +2224,7 @@ int listpackTest(int argc, char *argv[], int flags) {
index
++
;
}
}
lpFree
(
lp
);
}
TEST
(
"lpNextRandom corner cases"
)
{
...
...
@@ -2272,6 +2273,7 @@ int listpackTest(int argc, char *argv[], int flags) {
p
=
lpNextRandom
(
lp
,
p
,
&
i
,
remaining
,
0
);
assert
(
p
==
p0
||
p
==
p1
||
p
==
p2
||
p
==
NULL
);
}
lpFree
(
lp
);
}
TEST
(
"Random pair with one element"
)
{
...
...
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