In free_rbtdb(), only try to put the current version if it has been allocated. Replace old origin name duplication code with calls to dns_name_dupwithoffsets() and dns_name_free().
In free_rbtdb(), only try to put the current version if it has been allocated.
Replace old origin name duplication code with calls to
dns_name_dupwithoffsets() and dns_name_free().

each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,each/bind9-collab,pecharmin/bind9,pecharmin/bind9,pecharmin/bind9,pecharmin/bind9,each/bind9-collab,each/bind9-collab