[PATCH 15/15] fs-tests: don't leak temporary buffers

David Oberhollenzer david.oberhollenzer at sigma-star.at
Sun Nov 10 07:30:59 PST 2019


Signed-off-by: David Oberhollenzer <david.oberhollenzer at sigma-star.at>
---
 tests/fs-tests/simple/perf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/fs-tests/simple/perf.c b/tests/fs-tests/simple/perf.c
index aee8226..224085f 100644
--- a/tests/fs-tests/simple/perf.c
+++ b/tests/fs-tests/simple/perf.c
@@ -151,6 +151,7 @@ static void perf(void)
 	printf("Write speed (KiB/s): %u\n", speed(actual_size, write_time));
 	printf("Read speed (KiB/s): %u\n", speed(actual_size, read_time));
 	printf("Test completed\n");
+	free(buf);
 }
 
 /* Title of this test */
-- 
2.21.0




More information about the linux-mtd mailing list