summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXian Li <lionel@goosat.com>2014-03-18 11:37:08 +0800
committerantirez <antirez@gmail.com>2014-08-08 10:30:14 +0200
commitf510cfb4ef724987a145ffbbba00230e976787bf (patch)
tree7993dcf21969110c8b43c2722ae64c3dc1baa910
parent7a2450a7e5852beb29a923caf091161e06e39cc9 (diff)
downloadredis-f510cfb4ef724987a145ffbbba00230e976787bf.tar.gz
memtest: Add missing free()
Closes #1614
-rw-r--r--src/memtest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/memtest.c b/src/memtest.c
index cabfb5c89..18d821b10 100644
--- a/src/memtest.c
+++ b/src/memtest.c
@@ -237,6 +237,7 @@ void memtest_test(size_t megabytes, int passes) {
memtest_progress_end();
memtest_compare_times(m,bytes,pass,4);
}
+ free(m);
}
void memtest_non_destructive_invert(void *addr, size_t size) {