Skip to content

Commit ed255ae

Browse files
committed
Merge branch 'PHP-8.6'
* PHP-8.6: ext/standard: Free Windows DNS query results
2 parents 7499720 + 4fbeee2 commit ed255ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎ext/standard/dns_win32.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ PHP_FUNCTION(dns_check_record)
114114

115115
status = DnsQuery_A(hostname, type, DNS_QUERY_STANDARD, NULL, &pResult, NULL);
116116

117+
if (!status) {
118+
DnsRecordListFree(pResult, DnsFreeRecordListDeep);
119+
}
120+
117121
RETURN_BOOL(!status);
118122
}
119123
/* }}} */

0 commit comments

Comments
 (0)