mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Avoid a potential double-free here
This commit is contained in:
parent
d03961b23b
commit
9eb19ae2bf
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue