[PATCH 6.1 179/321] powerpc/boot: Only free if realloc() succeeds