diff --git a/ext/readline/readline.c b/ext/readline/readline.c index b9435521ca8..174556d4d3f 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -441,6 +441,7 @@ PHP_FUNCTION(readline_list_history) } } } + free(hs); } #else /* readline */