Skip to content

Commit c4166da

Browse files
committed
Add missing lpFree for listpack test, fix valgrind daily (redis#11492)
Add missing lpFree, introduced in redis#11290
1 parent c0fb083 commit c4166da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/listpack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,6 +2224,7 @@ int listpackTest(int argc, char *argv[], int flags) {
22242224
index++;
22252225
}
22262226
}
2227+
lpFree(lp);
22272228
}
22282229

22292230
TEST("lpNextRandom corner cases") {
@@ -2272,6 +2273,7 @@ int listpackTest(int argc, char *argv[], int flags) {
22722273
p = lpNextRandom(lp, p, &i, remaining, 0);
22732274
assert(p == p0 || p == p1 || p == p2 || p == NULL);
22742275
}
2276+
lpFree(lp);
22752277
}
22762278

22772279
TEST("Random pair with one element") {

0 commit comments

Comments
 (0)