[PATCH 4.19 35/98] powerpc/boot: Only free if realloc() succeeds