]> granicus.if.org Git - php/commitdiff
- Fixed bug #48087 (call_user_method() invalid free of arguments)
authorFelipe Pena <felipe@php.net>
Mon, 27 Apr 2009 12:50:00 +0000 (12:50 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 27 Apr 2009 12:50:00 +0000 (12:50 +0000)
ext/standard/basic_functions.c

index 669f532ae670f4af03a9592e0420e59d47a2020e..50e54aec58450633af13d78b3baf4f12e42ef97a 100644 (file)
@@ -4777,7 +4777,9 @@ PHP_FUNCTION(call_user_method)
        } else {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %R()", Z_TYPE_P(callback), Z_UNIVAL_P(callback));
        }
-       efree(params);
+       if (n_params) {
+               efree(params);
+       }
 }
 /* }}} */