obj: fix leak properly