diff options
| -rw-r--r-- | ext/standard/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 596bdefc12..5004b119c6 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -555,8 +555,9 @@ PHP_FUNCTION(file_get_contents) } if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) { -//??? RETVAL_STRINGL(contents, len, 0); +//??? RETVAL_STRINGL(contents, len, 0); RETVAL_STRINGL(contents, len); + efree(contents); } else if (len == 0) { RETVAL_EMPTY_STRING(); } else { |
