drivers/media/video: fix memory leak of snd_cx18_init()
PATCH 1/1 drivers/media/video: fix memory leak of snd_cx18_init()
cxsc is not freed in the error case.
Signed-off-by Andre Bartke <[email protected]>
--- drivers/media/video/cx18/cx18-alsa-main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/media/video/cx18/cx18-alsa-main.c +1 -0
@@ -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; }
Signature · 1 line
1.7.5.2