From 6331caca6a6000af8d5717c85f6cb9b297c5f28c Mon Sep 17 00:00:00 2001 From: John Sully Date: Sun, 30 May 2021 02:55:39 +0000 Subject: [PATCH] Fix a leak in the benchmark Former-commit-id: aa5b27b040c69f0c7d166203bed7110bc8c0bc87 --- src/redis-benchmark.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/redis-benchmark.cpp b/src/redis-benchmark.cpp index d243fe6ca..bde103423 100644 --- a/src/redis-benchmark.cpp +++ b/src/redis-benchmark.cpp @@ -1981,6 +1981,7 @@ int main(int argc, const char **argv) { if (!config.csv) printf("\n"); } while(config.loop); + zfree(data); if (config.redis_config != NULL) freeRedisConfig(config.redis_config);