]> granicus.if.org Git - php/commitdiff
- tmpbuf is emalloc()'ed so this patch would be faster.
authorAndi Gutmans <andi@php.net>
Mon, 28 May 2001 19:38:30 +0000 (19:38 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 28 May 2001 19:38:30 +0000 (19:38 +0000)
ext/sockets/sockets.c

index e9626fbd7a371e72f041411084ddc3cc296775f5..b192e6b1ee70196b1a3cd224f1c753dc42e5ea78 100644 (file)
@@ -688,8 +688,7 @@ PHP_FUNCTION(socket_read)
        }
 
        tmpbuf[retval] = '\0';
-       RETVAL_STRING(tmpbuf, 1);
-       efree(tmpbuf);
+       RETURN_STRING(tmpbuf, 0);
 }
 /* }}} */