record_author_date(): fix memory leak on malformed commit