From 13525328ede9db6f8235b4e7f91f7bce80235880 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Fri, 24 Jul 2015 17:17:09 +0200 Subject: Cleanup shutdown, enable proper memory leak displaying phpdbg should not memory leak... --- sapi/phpdbg/phpdbg_cmd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sapi/phpdbg/phpdbg_cmd.c') diff --git a/sapi/phpdbg/phpdbg_cmd.c b/sapi/phpdbg/phpdbg_cmd.c index 12eb3874fd..34456bb77b 100644 --- a/sapi/phpdbg/phpdbg_cmd.c +++ b/sapi/phpdbg/phpdbg_cmd.c @@ -765,6 +765,9 @@ PHPDBG_API char *phpdbg_read_input(char *buffered) /* {{{ */ PHPDBG_G(buffer) = estrdup(buffer); } else { if (PHPDBG_G(buffer)) { + if (buffer) { + efree(buffer); + } buffer = estrdup(PHPDBG_G(buffer)); } } -- cgit v1.2.1