]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Fix memory leak issue in Manage_stop()
authorWu Guanghao <wuguanghao3@huawei.com>
Tue, 14 Oct 2025 03:29:37 +0000 (11:29 +0800)
committerXiaoNi87 <xni@redhat.com>
Thu, 16 Oct 2025 14:02:02 +0000 (22:02 +0800)
commitb67f6f01c8c1638bca5c2c9327720b2b8197768f
tree1aa5b3143075203de41037003fb2330d1aba810a
parent7cb225b4949ca63f9e8298a7feb00e04c71c7e9e
mdadm: Fix memory leak issue in Manage_stop()

The local variable 'mds' allocated in Manage_stop() is only released
under specific conditions in the for loop. This can lead to memory leak
when under othe conditions.

Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Manage.c