summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piatkowski <pawel.piatkowski@intel.com>2021-11-04 14:16:22 +0100
committerJes Sorensen <jsorensen@fb.com>2021-11-09 22:55:19 +0100
commit75f3ba2527f37e5d5725b0827510209211c0eda1 (patch)
tree12d066d7f87488b4972a8c2d226736e5709148b4
parentRelease mdadm-4.2-rc3 (diff)
downloadmdadm-75f3ba2527f37e5d5725b0827510209211c0eda1.tar.xz
mdadm-75f3ba2527f37e5d5725b0827510209211c0eda1.zip
imsm: free allocated memory in imsm_fix_size_mismatch
Free allocated memory stored in variable named update Signed-off-by: Pawel Piatkowski <pawel.piatkowski@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r--super-intel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c
index 28472a1a..3dfc2439 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -11783,6 +11783,8 @@ static int imsm_fix_size_mismatch(struct supertype *st, int subarray_index)
} else {
imsm_sync_metadata(st);
}
+
+ free(update);
}
ret_val = 0;
exit: