Properly fix memory leak in _nss_dns_gethostbyname4_r with big DNS answer
authorAndreas Schwab <schwab@suse.de>
Tue, 18 Feb 2014 09:57:25 +0000 (10:57 +0100)
committerAndreas Schwab <schwab@suse.de>
Wed, 19 Feb 2014 13:39:21 +0000 (14:39 +0100)
commitab09bf616ad527b249aca5f2a4956fd526f0712f
tree8983f676bf5ac2c5e418a4276dcd25f28755ea70
parentc6af2d896ce07740ad5170eaed3c0bb7720e079e
Properly fix memory leak in _nss_dns_gethostbyname4_r with big DNS answer

Instead of trying to guess whether the second buffer needs to be freed
set a flag at the place it is allocated
ChangeLog
include/resolv.h
resolv/gethnamaddr.c
resolv/nss_dns/dns-canon.c
resolv/nss_dns/dns-host.c
resolv/nss_dns/dns-network.c
resolv/res_query.c
resolv/res_send.c