Browse Source

Fixed a memory leak inside readline_completion_function() on non-callable


			
			
				experimental/5.2-WITH_DRCP
			
			
		
Ilia Alshanetsky 20 years ago
parent
commit
c92668e768
  1. 1
      ext/readline/readline.c

1
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;
}

Loading…
Cancel
Save