- Fixed bug #53153 (memory leak with phpinfo() + output buffering + zlib compression).
authorGustavo André dos Santos Lopes <cataphract@php.net>
Tue, 2 Nov 2010 03:49:49 +0000 (03:49 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Tue, 2 Nov 2010 03:49:49 +0000 (03:49 +0000)
main/output.c

index 50d98b438cb95d4eb2fa532c5fd15505414fb202..accc6e4822210064a19f60813ac5f8bd229739ce 100644 (file)
@@ -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;