All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/10] Free pdu_buff on bad pdu path in process()
@ 2011-12-16 19:08 Eric Sandeen
  0 siblings, 0 replies; only message in thread
From: Eric Sandeen @ 2011-12-16 19:08 UTC (permalink / raw)
  To: linux-btrace

On this error path, pdu_buf was never freed.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

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);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-12-16 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-16 19:08 [PATCH 3/10] Free pdu_buff on bad pdu path in process() Eric Sandeen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.