]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Detail.c: fix memleak in Detail()
authorWu Guanghao <wuguanghao3@huawei.com>
Fri, 3 Mar 2023 16:21:32 +0000 (00:21 +0800)
committerJes Sorensen <jes@trained-monkey.org>
Wed, 8 Mar 2023 18:54:30 +0000 (13:54 -0500)
commitdac0b5121dd77bf1659b95248423445f932dfae4
tree2b1e826a65282d906129b6302dc2e5aaa3123720
parent06ef619582b47af89eb094c164fc5effd46d6048
Detail.c: fix memleak in Detail()

char *sysdev = xstrdup() but not free() in for loop, will cause memory
leak

Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Acked-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Detail.c