Fix leak by using td_ta_delete() to deregister target process and deallocate internal...