aboutsummaryrefslogtreecommitdiff
path: root/tests/fs-tests/integrity
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-18 17:36:12 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-22 14:29:52 +0300
commite5047f54b8f160c829da31f91a0bf459219b8c0e (patch)
tree1fd5edfd94b87f5efa3963ed04ff40486d1625c7 /tests/fs-tests/integrity
parentbad05f7acc56e2ed123e9e874d938f5f14b949b9 (diff)
fs-tests: integck: free raw write information
The test leaks memory like hell because it does not free the raw writes information. This patch fixes the leaks. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'tests/fs-tests/integrity')
-rw-r--r--tests/fs-tests/integrity/integck.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 50b414f..96937ff 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -610,6 +610,13 @@ static void free_writes_info(struct file_info *file)
free(w);
w = next;
}
+
+ w = file->raw_writes;
+ while (w) {
+ next = w->next;
+ free(w);
+ w = next;
+ }
}
/*