-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/02/2009 07:59 PM, Yang Tse wrote: > It is obvious that the difference is directly storing an > ares_[txt|srv]_reply struct in the 'ares private internal struct' or > storing a pointer to a dynamically allocated ares_[txt|srv]_reply > struct. >
Just in case it's not clear - the reason I opted for storing the struct in the internal structure is way easier handling of the address to use with offsetof during free. Jakub -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkrvMVMACgkQHsardTLnvCXW1ACghx6rVmtBm/6Es8wMD0kuH8qS 9MgAoNjKy7zbmKSHghHz5Y+92/dyJB7b =1CzE -----END PGP SIGNATURE-----