set_free_resources2