Parent: 72c3f5bf1ce676a92064a21b61fc56bfea6b3361
Author: Roman Smirnov <r.smirnov@omp.ru>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-27 21:33:51
Tree: 0f941dc8ba95cade50c04cc1c3817493c80845d3
health/mcap: fix memory leak in mcap_create_mcl() set_default_cb() can allocate memory for mcl->cb but it does not free mcl->cb before exiting the function. Add freeing mcl->cb before exiting the function. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool.
Diffstat
| M | profiles/health/mcap.c | | | 1 | + |
1 files changed, 1 insertions(+), 0 deletions(-)