diff options
author | Stanislav Malyshev <stas@php.net> | 2012-02-01 19:52:05 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2012-02-01 19:52:05 +0000 |
commit | 9cb8f3ad4834880fe27894b884e1953464d6f09d (patch) | |
tree | d9b323572ab5e565fa8b3d4acf7dd24b7a635424 /main/php_variables.c | |
parent | 33a2c339bd509b80a22796acdee98fe06f06fe2d (diff) | |
download | php-git-9cb8f3ad4834880fe27894b884e1953464d6f09d.tar.gz |
fix UMR in php_register_variable_ex, reported by Stefan Esser
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/php_variables.c b/main/php_variables.c index 5f779f991c..995497c42d 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -186,6 +186,9 @@ PHPAPI void php_register_variable_ex(char *var_name, zval *val, zval *track_vars MAKE_STD_ZVAL(gpc_element); array_init(gpc_element); zend_symtable_update(symtable1, escaped_index, index_len + 1, &gpc_element, sizeof(zval *), (void **) &gpc_element_p); + } else { + free_alloca(var_orig, use_heap); + return; } } if (index != escaped_index) { |