mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
- MFB: fix leak when an error occured in socket_read, free tmpbuf
This commit is contained in:
@@ -869,6 +869,7 @@ PHP_FUNCTION(socket_read)
|
||||
php_sock->error = errno;
|
||||
SOCKETS_G(last_error) = errno;
|
||||
} else {
|
||||
efree(tmpbuf);
|
||||
PHP_SOCKET_ERROR(php_sock, "unable to read from socket", errno);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user