summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2011-12-16 13:08:14 -0600
committerJens Axboe <jaxboe@fusionio.com>2012-02-01 13:14:26 +0100
commit5293cfdbdbc29d34f61f43a9acbdf3468375c68d (patch)
tree1f064571af379df6f68a12c3ada49d75b27a7148
parent729b2bf689624646a3a9ce9a8f0dbec3eae02004 (diff)
downloadblktrace-5293cfdbdbc29d34f61f43a9acbdf3468375c68d.tar.gz
blktrace-5293cfdbdbc29d34f61f43a9acbdf3468375c68d.tar.bz2
Free pdu_buff on bad pdu path in process()
On this error path, pdu_buf was never freed. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r--blkrawverify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/blkrawverify.c b/blkrawverify.c
index 4638eb7..ed5d258 100644
--- a/blkrawverify.c
+++ b/blkrawverify.c
@@ -201,6 +201,7 @@ static int process(FILE **fp, char *devname, char *file, unsigned int cpu)
if (n == 0) {
INC_BAD("bad pdu");
nbad_seq++;
+ free(pdu_buf);
break;
}
free(pdu_buf);