Skip to content

Commit

Permalink
Fix memory leak on invalid port
Browse files Browse the repository at this point in the history
Closes GH-7911.
  • Loading branch information
devnexen authored and cmb69 committed Jan 8, 2022
1 parent 9781085 commit c99a026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2022, PHP 8.0.16

- FPM:
. Fixed memory leak on invalid port. (David Carlier)

- Sockets:
. Fixed ext/sockets build on Haiku. (David Carlier)

Expand Down
1 change: 1 addition & 0 deletions sapi/fpm/fpm/fpm_sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ static int fpm_socket_af_inet_listening_socket(struct fpm_worker_pool_s *wp) /*

if (port == 0) {
zlog(ZLOG_ERROR, "invalid port value '%s'", port_str);
free(dup_address);
return -1;
}

Expand Down

0 comments on commit c99a026

Please sign in to comment.