[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-cvs
Subject:    [PHP-CVS] cvs: php4 /main output.c
From:       "Zeev Suraski" <zeev () zend ! com>
Date:       2001-08-31 13:51:09
[Download RAW message or body]

zeev		Fri Aug 31 11:16:15 2001 EDT

  Modified files:              
    /php4/main	output.c 
  Log:
  Fix double freeing
  
  
Index: php4/main/output.c
diff -u php4/main/output.c:1.75 php4/main/output.c:1.76
--- php4/main/output.c:1.75	Sat Aug 25 11:57:42 2001
+++ php4/main/output.c	Fri Aug 31 11:16:15 2001
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: output.c,v 1.75 2001/08/25 15:57:42 zeev Exp $ */
+/* $Id: output.c,v 1.76 2001/08/31 15:16:15 zeev Exp $ */
 
 #include "php.h"
 #include "ext/standard/head.h"
@@ -200,7 +200,8 @@
 
 	to_be_destroyed_buffer = OG(active_ob_buffer).buffer;
 	if (OG(active_ob_buffer).internal_output_handler
-		&& (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer)) {
+		&& (final_buffer != OG(active_ob_buffer).internal_output_handler_buffer)
+		&& (final_buffer != OG(active_ob_buffer).buffer)) {
 		to_be_destroyed_handled_output[0] = final_buffer;
 	}
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net
For additional commands, e-mail: php-cvs-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic