fix rpl_malloc issue