From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> In case of second posix_memalign() failing, release memory allocated in first posix_memalign() call. Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- super-intel.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index 3525dae..1caee70 100644 --- a/super-intel.c +++ b/super-intel.c @@ -4200,6 +4200,7 @@ static int init_super_imsm_volume(struct supertype *st, mdu_array_info_t *info, __func__); free(super->buf); free(super); + free(mpb_new); return 0; } memcpy(mpb_new, mpb, size_old); -- 1.7.6.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html