* [PATCH] fix resource leak in pnp card_probe()
@ 2006-03-26 13:50 Jesper Juhl
0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2006-03-26 13:50 UTC (permalink / raw)
To: linux-kernel; +Cc: Adam Belay, Jesper Juhl
We can leak `clink' in drivers/pnp/card.c::card_probe()
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
drivers/pnp/card.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
--- linux-2.6.16-mm1-orig/drivers/pnp/card.c 2006-03-26 13:43:38.000000000 +0200
+++ linux-2.6.16-mm1/drivers/pnp/card.c 2006-03-26 15:45:00.000000000 +0200
@@ -81,8 +81,10 @@ static int card_probe(struct pnp_card *
}
kfree(clink);
}
- } else
+ } else {
+ kfree(clink);
return 1;
+ }
}
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-26 13:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-26 13:50 [PATCH] fix resource leak in pnp card_probe() Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome