diff options
author | Binbin <binloveplay1314@qq.com> | 2022-11-10 16:27:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 10:27:38 +0200 |
commit | 6617f1704ba9ce6d119c033c10cbe1450f0eeedf (patch) | |
tree | 8ec0b2afb12eea4dfeaaa04e5e206dddb4f41f96 /src/listpack.c | |
parent | 4e472a1a7fc0dc2c7da2b48ac7342e9385b4f92a (diff) | |
download | redis-6617f1704ba9ce6d119c033c10cbe1450f0eeedf.tar.gz |
Add missing lpFree for listpack test, fix valgrind daily (#11492)
Add missing lpFree, introduced in #11290
Diffstat (limited to 'src/listpack.c')
-rw-r--r-- | src/listpack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listpack.c b/src/listpack.c index bfa364f98..abe2142de 100644 --- a/src/listpack.c +++ b/src/listpack.c @@ -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") { |