Skip to content
Commit 713f871b authored by zhengbin's avatar zhengbin Committed by Mauro Carvalho Chehab
Browse files

media: mc-device.c: fix memleak in media_device_register_entity



In media_device_register_entity, if media_graph_walk_init fails,
need to free the previously memory.

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 36909b55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment