add star and fix leak