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