Manually go through the code using dns_rdataset_isassociated() and use dns_rdataset_cleanup() where appropriate in places that a simple semantic patch is not able to find automatically.