]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: Fix possible memory leaks and refactor freeing struct dl
authorMateusz Grzonka <mateusz.grzonka@intel.com>
Mon, 28 Jun 2021 12:15:04 +0000 (14:15 +0200)
committerJes Sorensen <jsorensen@fb.com>
Fri, 16 Jul 2021 14:30:11 +0000 (10:30 -0400)
commit3a85bf0e417d0977136efbade7c7ea269e24bc21
tree07841a8564d8558698cecba24ca9049a622b6656
parentccd61ebfd97fde43768497c79e3d361b484b1520
imsm: Fix possible memory leaks and refactor freeing struct dl

Free memory allocated by structs dl and intel_super.
Allow __free_imsm_disk to decide if fd has to be closed and propagate it
across code instead of direct struct dl freeing.

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