[php-src] PR #22340: Fix leak of resolved address list in snmp_session_init()

From: Date: Tue, 16 Jun 2026 21:20:59 +0000
Subject: [php-src] PR #22340: Fix leak of resolved address list in snmp_session_init()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36469@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22340 Author: iliaal When php_network_getaddresses() succeeds but no resolved address yields a usable peer name (for example bracketed IPv6 syntax over an IPv4-only host), snmp_session_init() returned without php_network_freeaddresses(), leaking the address list on every such call. Free it on that error path, matching the success path and the convention in main/network.c.

« previous php.git-pulls (#36469) next »