Subject: Re: [PATCH] ares_free_reply (Was: Re: [PATCH] ares_parse_txt_reply)

Re: [PATCH] ares_free_reply (Was: Re: [PATCH] ares_parse_txt_reply)

From: Jakub Hrozek <jhrozek_at_redhat.com>
Date: Mon, 02 Nov 2009 20:21:55 +0100

-----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-----
Received on 2009-11-02