]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix memory leak in file Manage
authorGuanqin Miao <miaoguanqin@huawei.com>
Mon, 24 Apr 2023 08:06:36 +0000 (16:06 +0800)
committerJes Sorensen <jes@trained-monkey.org>
Fri, 1 Sep 2023 16:08:06 +0000 (12:08 -0400)
commitf6feb3fbb50f48c193e9e4d775a20aa20f7b47b3
tree0f85571f6b90ac0c81a34f90ee39188be8713f44
parent8fd0c565b09ba449418d7d604ceba66313246152
Fix memory leak in file Manage

When we test mdadm with asan, we found some memory leaks in Manage.c
We fix these memory leaks based on code logic.

v2: Fix free() of uninitialized 'tst' in abort path.

Signed-off-by: Guanqin Miao <miaoguanqin@huawei.com>
Signed-off-by: Li Xiao Keng <lixiaokeng@huawei.com>
Acked-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Manage.c