Refactor how to use RSTR_NOFREE_P macro