mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
- tmpbuf is emalloc()'ed so this patch would be faster.
This commit is contained in:
@@ -688,8 +688,7 @@ PHP_FUNCTION(socket_read)
|
||||
}
|
||||
|
||||
tmpbuf[retval] = '\0';
|
||||
RETVAL_STRING(tmpbuf, 1);
|
||||
efree(tmpbuf);
|
||||
RETURN_STRING(tmpbuf, 0);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user