Refactoring: Move the cleanup code in lpolyend to the branches where it's needed.
Authored by: david_costanzo 2020-08-16
Parent: [r5412]
Child: [r5414]