]> sourceware.org Git - glibc.git/commit
Properly fix memory leak in _nss_dns_gethostbyname4_r with big DNS answer
authorAndreas Schwab <[email protected]>
Tue, 18 Feb 2014 09:57:25 +0000 (10:57 +0100)
committerAllan McRae <[email protected]>
Fri, 5 Sep 2014 12:44:08 +0000 (22:44 +1000)
commit40da893a143224b0a41a004eb5e971fc5d94381b
tree989a6e166c69d975aa7b6c7ada1dae9b77c8caf9
parent3a4f226eaf6aff5529711f7fa3885a1cec815c32
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

(cherry picked from commit ab09bf616ad527b249aca5f2a4956fd526f0712f)
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
This page took 0.046642 seconds and 6 git commands to generate.