]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Incremental: Fix possible memory and resource leaks
authorMateusz Grzonka <mateusz.grzonka@intel.com>
Mon, 13 Jun 2022 10:11:25 +0000 (12:11 +0200)
committerJes Sorensen <jsorensen@fb.com>
Tue, 14 Jun 2022 14:30:48 +0000 (10:30 -0400)
commitde064c93e3819d72720e4fba6575265ba10e1553
treee35d5fb6b23d0c97cf47dfe470a6bc8ad083ae4d
parent20e114e334ed6ed3280c37a9a08fb95578393d1a
Incremental: Fix possible memory and resource leaks

map allocated through map_by_uuid() is not freed if mdfd is invalid.
In addition mdfd is not closed, and mdinfo list is not freed too.

Signed-off-by: Mateusz Grzonka <mateusz.grzonka@intel.com>
Change-Id: I25e726f0e2502cf7e8ce80c2bd7944b3b1e2b9dc
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Incremental.c