Skip to contentSkip to conversation

imsm: free allocated memory in imsm_fix_size_mismatch

PATCH Applied Pawel Piatkowski 2 participants 2 messages Nov 4, 2021 – Nov 9, 2021 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imsm: free allocated memory in imsm_fix_size_mismatch

Free allocated memory stored in variable named update

---
 super-intel.c | 2 ++
 1 file changed, 2 insertions(+)
super-intel.c +2 -0
index 08c64409..4f8d9747 100644
@@ -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:
Signature · 1 line
2.26.2