cvs: php4 /main output.c

From: Date: Sat, 04 May 2002 19:06:46 +0000
Subject: cvs: php4 /main output.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11693@lists.php.net to get a copy of this message
sas Sat May 4 15:06:46 2002 EDT Modified files: /php4/main output.c Log: Free string before overwriting it Index: php4/main/output.c diff -u php4/main/output.c:1.99 php4/main/output.c:1.100 --- php4/main/output.c:1.99 Sat May 4 14:33:13 2002 +++ php4/main/output.c Sat May 4 15:06:46 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: output.c,v 1.99 2002/05/04 18:33:13 sas Exp $ */ +/* $Id: output.c,v 1.100 2002/05/04 19:06:46 sas Exp $ */ #include "php.h" #include "ext/standard/head.h" @@ -324,8 +324,10 @@ OG(active_ob_buffer).internal_output_handler = internal_output_handler; OG(active_ob_buffer).internal_output_handler_buffer = (char *) emalloc(buffer_size); OG(active_ob_buffer).internal_output_handler_buffer_size = buffer_size; + if (OG(active_ob_buffer).handler_name) + efree(OG(active_ob_buffer).handler_name); OG(active_ob_buffer).handler_name = handler_name; - OG(active_ob_buffer).erase = erase; + OG(active_ob_buffer).erase = erase; } /* }}} */

« previous php.cvs (#11693) next »