Filter duplicate parent ids.
Parent commits were not freed. Fixed.