From 7982cbf8c2cbd5c10cc4b680153684cf3fbd463f Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Tue, 14 Apr 2009 01:03:00 -0300
Subject: [PATCH 21/38] tests/performance: Free the buffers allocated in the workers

They weren't really a problem, but cluttered up valgrind reports.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 tests/performance/performance.c |    2 ++
 tests/performance/random.c      |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/performance/performance.c b/tests/performance/performance.c
index 199865a..789b966 100644
--- a/tests/performance/performance.c
+++ b/tests/performance/performance.c
@@ -85,6 +85,8 @@ static void *worker(void *tno)
 
 	printf("%lu %zd %zd %f %f\n", tid, mb, blocksize, seconds, mb_per_sec);
 
+	free(buf);
+
 	return NULL;
 }
 
diff --git a/tests/performance/random.c b/tests/performance/random.c
index a788ddc..b159952 100644
--- a/tests/performance/random.c
+++ b/tests/performance/random.c
@@ -88,6 +88,8 @@ static void *worker(void *tno)
 
 	printf("%lu %zd %zd %f %f\n", tid, mb, blocksize, seconds, mb_per_sec);
 
+	free(buf);
+
 	return NULL;
 }
 
-- 
1.6.2.2.646.gb214


