summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 1a6c211ea7..d706674baf 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -871,7 +871,6 @@ 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);
}