it will need to be freed, dns_rdata_freestruct(). Changes to implement this. Added C++ support to rdatastruct.h