From: Ilia Alshanetsky Date: Mon, 12 Feb 2007 01:23:17 +0000 (+0000) Subject: Fixed a memory leak inside readline_completion_function() on non-callable X-Git-Tag: php-5.2.2RC1~426 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c92668e7688fe6158015d3f6eb091a2e17ef4a61;p=php Fixed a memory leak inside readline_completion_function() on non-callable callback. --- diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 14f2cf3fb2..d4d42582d2 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -453,6 +453,7 @@ PHP_FUNCTION(readline_completion_function) if (!zend_is_callable(arg, 0, &name)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s is not callable", name); + efree(name); RETURN_FALSE; }