mpi: remove NULL checks before frees