When we test mdadm with asan,we found some memory leaks. We fix these memory leaks based on code logic. miaoguanqin (4): Fix memory leak in file Assemble Fix memory leak in file Kill Fix memory leak in file Manage Fix memory leak in file mdadm Assemble.c | 15 +++++++++++++-- Kill.c | 9 ++++++++- Manage.c | 16 +++++++++++++++- mdadm.c | 4 ++++ 4 files changed, 40 insertions(+), 4 deletions(-) -- 2.33.0