- fix possible leak, when orig_array_ptr is null

This commit is contained in:
Pierre Joye 2006-05-01 17:14:40 +00:00
parent dcc51c1977
commit fdeb6ba904

View File

@ -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);
}