mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
- fix possible leak, when orig_array_ptr is null
This commit is contained in:
parent
dcc51c1977
commit
fdeb6ba904
@ -374,6 +374,8 @@ static unsigned int php_sapi_filter(int arg, char *var, char **val, unsigned int
|
||||
|
||||
if (orig_array_ptr) {
|
||||
php_register_variable_ex(orig_var, &new_var, orig_array_ptr TSRMLS_CC);
|
||||
}
|
||||
if (array_ptr) {
|
||||
efree(orig_var);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user