* [PATCH] drivers/media/video: fix memory leak of snd_cx18_init()
@ 2011-06-03 18:06 Andre Bartke
0 siblings, 0 replies; only message in thread
From: Andre Bartke @ 2011-06-03 18:06 UTC (permalink / raw)
To: awalls; +Cc: mchehab, ivtv-devel, linux-media, linux-kernel, Andre Bartke
cxsc is not freed in the error case.
Signed-off-by: Andre Bartke <andre.bartke@gmail.com>
---
drivers/media/video/cx18/cx18-alsa-main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/media/video/cx18/cx18-alsa-main.c b/drivers/media/video/cx18/cx18-alsa-main.c
index d50d69d..a1e6c2a 100644
--- a/drivers/media/video/cx18/cx18-alsa-main.c
+++ b/drivers/media/video/cx18/cx18-alsa-main.c
@@ -192,6 +192,7 @@ static int snd_cx18_init(struct v4l2_device *v4l2_dev)
err_exit_free:
if (sc != NULL)
snd_card_free(sc);
+ kfree(cxsc);
err_exit:
return ret;
}
--
1.7.5.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-03 18:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-03 18:06 [PATCH] drivers/media/video: fix memory leak of snd_cx18_init() Andre Bartke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox