From: Antony Dovgal Date: Wed, 19 Jul 2006 08:35:55 +0000 (+0000) Subject: no need to fetch name and free it immediately after that X-Git-Tag: php-5.2.0RC1~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8241e59ac3de7462efd2a4cdb6490396e125118;p=php no need to fetch name and free it immediately after that --- diff --git a/ext/filter/callback_filter.c b/ext/filter/callback_filter.c index 5ce17fe23f..d0f6708fbf 100644 --- a/ext/filter/callback_filter.c +++ b/ext/filter/callback_filter.c @@ -22,21 +22,16 @@ void php_filter_callback(PHP_INPUT_FILTER_PARAM_DECL) { - char *name = NULL; zval *retval_ptr; zval ***args; int status; - if (!option_array || !zend_is_callable(option_array, IS_CALLABLE_CHECK_NO_ACCESS, &name)) { + if (!option_array || !zend_is_callable(option_array, IS_CALLABLE_CHECK_NO_ACCESS, NULL)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "First argument is expected to be a valid callback"); - if (name) { - efree(name); - } zval_dtor(value); Z_TYPE_P(value) = IS_NULL; return; } - efree(name); args = safe_emalloc(sizeof(zval **), 1, 0); args[0] = &value;