]> granicus.if.org Git - php/commitdiff
- Fix memory leak on exit
authorFelipe Pena <felipensp@gmail.com>
Sun, 24 Nov 2013 20:01:14 +0000 (18:01 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 24 Nov 2013 20:01:14 +0000 (18:01 -0200)
phpdbg_prompt.c

index 2671480c2ac4c7e0c8c290536303a63de795bf31..c26446cde1f474ee44c54a34c094df347f5d8909 100644 (file)
@@ -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();
        }