mirror of
https://github.com/php/php-src.git
synced 2026-03-31 20:53:00 +02:00
fix leak from readline
This commit is contained in:
@@ -594,6 +594,12 @@ phpdbg_interactive_enter:
|
||||
}
|
||||
|
||||
if (!(PHPDBG_G(flags) & PHPDBG_IS_QUITTING)) {
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
if (cmd) {
|
||||
free(cmd);
|
||||
cmd = NULL;
|
||||
}
|
||||
#endif
|
||||
goto phpdbg_interactive_enter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user