From 7371142ca63cede041fac62071a47b91a3fc79bc Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 24 Nov 2013 18:01:14 -0200 Subject: [PATCH] - Fix memory leak on exit --- phpdbg_prompt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 2671480c2a..c26446cde1 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -856,6 +856,8 @@ PHPDBG_COMMAND(quit) /* {{{ */ /* don't allow this to loop, ever ... */ if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) { + phpdbg_destroy_input(&input TSRMLS_CC); + PHPDBG_G(flags) |= PHPDBG_IS_QUITTING; zend_bailout(); } -- 2.50.1