提交 2c87d9db 编写于 作者: A Andre Bartke 提交者: Mauro Carvalho Chehab

[media] drivers/media/video: fix memory leak of snd_cx18_init()

cxsc is not freed in the error case.
Signed-off-by: NAndre Bartke <andre.bartke@gmail.com>
Cc: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 7ce338d9
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册