commit | 43b97d97ee5f60207a4542f537452b990c7141d4 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Tue Mar 05 15:45:03 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Fri Mar 08 13:02:35 2019 +0000 |
tree | 5471c798b59468e593a7dba8500406ac6a5df660 | |
parent | d017e9711519852d82cf5c78c3bd505ad5096624 [diff] |
Use unique_ptr in dns_getaddrinfo() This simplifies memory management a bit. In fact, we don't even bother checking for memory allocation failures because 'new' aborts instead of returning null to the caller. Test: atest resolv_integration_test Change-Id: I6456922f4ca6d04d67fedc8873b0c32becf1d3dc