Get rid of a malloc in rt_update_group