mpc7: check for allocation failure