diff options
author | Andi Gutmans <andi@php.net> | 2001-05-28 19:38:30 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-05-28 19:38:30 +0000 |
commit | 91f4eec7e9ec30f1fe861487ecbd60a24c4dd421 (patch) | |
tree | 8227bc1e88ce91bae0010d29717250b77ae8c00c | |
parent | f808add1c003cb6f590318bdb528df7436e2a195 (diff) | |
download | php-git-91f4eec7e9ec30f1fe861487ecbd60a24c4dd421.tar.gz |
- tmpbuf is emalloc()'ed so this patch would be faster.
-rw-r--r-- | ext/sockets/sockets.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index e9626fbd7a..b192e6b1ee 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -688,8 +688,7 @@ PHP_FUNCTION(socket_read) } tmpbuf[retval] = '\0'; - RETVAL_STRING(tmpbuf, 1); - efree(tmpbuf); + RETURN_STRING(tmpbuf, 0); } /* }}} */ |