Skip to content

Commit 2b07513

Browse files
committed
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Fix memory leak on invalid port
2 parents 0a9f552 + c99a026 commit 2b07513

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.1.3
44

5-
5+
- FPM:
6+
. Fixed memory leak on invalid port. (David Carlier)
67

78
06 Jan 2022, PHP 8.1.2RC1
89

sapi/fpm/fpm/fpm_sockets.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ static int fpm_socket_af_inet_listening_socket(struct fpm_worker_pool_s *wp) /*
336336

337337
if (port == 0) {
338338
zlog(ZLOG_ERROR, "invalid port value '%s'", port_str);
339+
free(dup_address);
339340
return -1;
340341
}
341342

0 commit comments

Comments
 (0)