Update rp.c

maybe pimd will crash, when mm allocated failure！