diff options
| author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-11-02 03:49:49 +0000 |
|---|---|---|
| committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-11-02 03:49:49 +0000 |
| commit | 743f50927cf818a1d9c69e351573f60093d361f5 (patch) | |
| tree | 8cbf132d8c7569376b3e730449efa835d7fc3975 | |
| parent | adaa31fff830ad48087341aae5bb9d9461f24a1d (diff) | |
| download | php-git-743f50927cf818a1d9c69e351573f60093d361f5.tar.gz | |
- Fixed bug #53153 (memory leak with phpinfo() + output buffering + zlib compression).
| -rw-r--r-- | main/output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c index 50d98b438c..accc6e4822 100644 --- a/main/output.c +++ b/main/output.c @@ -902,7 +902,9 @@ static inline php_output_handler_status_t php_output_handler_op(php_output_handl } } else { - + if (context->in.data && context->in.free) { + efree(context->in.data); + } context->in.data = handler->buffer.data; context->in.used = handler->buffer.used; context->in.free = 0; |
