In the function getrrsetbyname... memory allocated by the call to parse_dns_response (which calls calloc): /* parse result */ response = parse_dns_response(answer, length); ... appears to be leaked on all paths in this function.
Created attachment 1023 [details] sync getrrsetbyname.c This can be resolved by syncing our compat code to OpenBSD's latest version of getrrsetbyname(), which already includes fixes for these leaks.
sync applied and will be in 4.3p1, thanks for the report.
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.