]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: Manage_add(): Fix memory leak
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 7 Mar 2016 16:51:24 +0000 (11:51 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 22 Mar 2016 18:03:12 +0000 (14:03 -0400)
commitd209181d96ff90a2a027694934c1d22da22140a5
tree5e6bf50555328cddb0b5e4fc463ecb8a2eea03f6
parent31dbeda730ab1c25040f2e9b5bc49008b8519adf
Manage: Manage_add(): Fix memory leak

sysfs_read() allocates and populates a struct mdinfo, however the code
forgot to free it again, before dropping the reference to the pointer.

Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Manage.c