globalenv: use more _cleanup_free_