Add missing lpFree for listpack test, fix valgrind daily (#11492)

Add missing lpFree, introduced in #11290
This commit is contained in:
Binbin 2022-11-10 16:27:38 +08:00 committed by GitHub
parent 4e472a1a7f
commit 6617f1704b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2224,6 +2224,7 @@ int listpackTest(int argc, char *argv[], int flags) {
index++; index++;
} }
} }
lpFree(lp);
} }
TEST("lpNextRandom corner cases") { TEST("lpNextRandom corner cases") {
@ -2272,6 +2273,7 @@ int listpackTest(int argc, char *argv[], int flags) {
p = lpNextRandom(lp, p, &i, remaining, 0); p = lpNextRandom(lp, p, &i, remaining, 0);
assert(p == p0 || p == p1 || p == p2 || p == NULL); assert(p == p0 || p == p1 || p == p2 || p == NULL);
} }
lpFree(lp);
} }
TEST("Random pair with one element") { TEST("Random pair with one element") {