mirror of
https://github.com/php/php-src.git
synced 2024-12-05 07:46:06 +08:00
Avoid a potential double-free here
This commit is contained in:
parent
d03961b23b
commit
9eb19ae2bf
@ -910,6 +910,7 @@ static int php_network_listen_socket(const char *host, int *port, int socktype,
|
||||
for (p = sal; *p; p++) {
|
||||
if (sa) {
|
||||
pefree(sa, 1);
|
||||
sa = NULL;
|
||||
}
|
||||
|
||||
retval = socket((*p)->sa_family, socktype, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user