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

char *m is allocated by xstrdup but not free() before return, will cause
a 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>
util.c