summaryrefslogtreecommitdiff
path: root/raid6check.c
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@itwm.fraunhofer.de>2013-06-18 11:09:26 +0200
committerNeilBrown <neilb@suse.de>2013-06-19 10:03:44 +1000
commit3a89d754887619934daec0e2386481574a7b7f57 (patch)
tree336cd6910c7ab13322558815cd5fb9b239e61460 /raid6check.c
parentf8fcf7a1c54c7c6b9b75a3388a73435db198bd71 (diff)
raid6check: Fix memory leaks detected by valgrind
==2389947== 24 bytes in 1 blocks are definitely lost in loss record 1 of 10 ==2389947== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2389947== by 0x408067: xmalloc (xmalloc.c:36) ==2389947== by 0x401B19: check_stripes (raid6check.c:151) ==2389947== by 0x4030C6: main (raid6check.c:521) ==2389947== ==2389947== 24 bytes in 1 blocks are definitely lost in loss record 2 of 10 ==2389947== at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==2389947== by 0x408067: xmalloc (xmalloc.c:36) ==2389947== by 0x401B67: check_stripes (raid6check.c:155) ==2389947== by 0x4030C6: main (raid6check.c:521) ==2389947== Signed-off-by: Bernd Schubert <bernd.schubert@fastmail.fm> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'raid6check.c')
-rw-r--r--raid6check.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/raid6check.c b/raid6check.c
index f5aeee44..17f74304 100644
--- a/raid6check.c
+++ b/raid6check.c
@@ -325,9 +325,11 @@ exitCheck:
free(stripe_buf);
free(stripes);
free(blocks);
+ free(block_index_for_slot);
free(p);
free(q);
free(results);
+ free(sig);
return err;
}