mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 12:24:37 -04:00
media: atomisp: fix memleak in ia_css_stream_create
When aspect_ratio_crop_init() fails, curr_stream needs to be freed just like what we've done in the following error paths. However, current code is returning directly and ends up leaking memory. Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
5b4b09788d
commit
c1bca5b5ce
@@ -9521,7 +9521,7 @@ ia_css_stream_create(const struct ia_css_stream_config *stream_config,
|
||||
if (err)
|
||||
{
|
||||
IA_CSS_LEAVE_ERR(err);
|
||||
return err;
|
||||
goto ERR;
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < num_pipes; i++)
|
||||
|
||||
Reference in New Issue
Block a user