diff options
author | Zhipeng Lu <alexious@zju.edu.cn> | 2024-02-01 20:48:44 +0800 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-02-05 12:57:45 +0100 |
commit | 8f94b49a5b5d386c038e355bef6347298aabd211 (patch) | |
tree | 439e402ede8fff0574f82518b62ed7fec6ca0d8e /include/media/v4l2-common.h | |
parent | 8cf9c5051076e0eb958f4361d50d8b0c3ee6691c (diff) | |
download | lwn-8f94b49a5b5d386c038e355bef6347298aabd211.tar.gz lwn-8f94b49a5b5d386c038e355bef6347298aabd211.zip |
media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity
The entity->name (i.e. name) is allocated in v4l2_m2m_register_entity
but isn't freed in its following error-handling paths. This patch
adds such deallocation to prevent memleak of entity->name.
Fixes: be2fff656322 ("media: add helpers for memory-to-memory media controller")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/media/v4l2-common.h')
0 files changed, 0 insertions, 0 deletions