[PATCH] imsm: free allocated memory in imsm_fix_size_mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Free allocated memory stored in variable named update

Signed-off-by: Pawel Piatkowski <pawel.piatkowski@xxxxxxxxx>
---
 super-intel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/super-intel.c b/super-intel.c
index 08c64409..4f8d9747 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -11798,6 +11798,8 @@ static int imsm_fix_size_mismatch(struct supertype *st, int subarray_index)
 		} else {
 			imsm_sync_metadata(st);
 		}
+
+		free(update);
 	}
 	ret_val = 0;
 exit:
-- 
2.26.2




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux