1
0
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:
Pierre Joye
2006-04-07 13:34:53 +00:00
parent 3ada78d408
commit a29f09dcc5
+1
View File
@@ -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);
}