Ticket 10 - Use after free
Bug Description: Coverity and ASAN detected use after frees related to the
reuse of the pin object.
Fix Description: This corrects the behaviours that would cause the use
after free to occur
https://pagure.io/svrcore/issue/10
Author: wibrown
Review by: nhosoi (Thanks!)