mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Free string before overwriting it
This commit is contained in:
parent
d41773e8b6
commit
707b8b019e
@ -324,8 +324,10 @@ PHPAPI void php_ob_set_internal_handler(php_output_handler_func_t internal_outpu
|
||||
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;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user