diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-08-04 01:22:04 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-08-04 01:22:04 +0200 |
commit | d0ad621906dcf2137119c85f2cfb5361c245a06f (patch) | |
tree | 3c0b422f5fca325d56905b3f34b1d5009332f401 /sapi/phpdbg/phpdbg.c | |
parent | d8fe645db444e54fcc8b2555c08a5021c17ca2d3 (diff) | |
download | php-git-d0ad621906dcf2137119c85f2cfb5361c245a06f.tar.gz |
Fix further leaks
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 89157562c9..3d7f847d23 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -234,6 +234,12 @@ static PHP_RSHUTDOWN_FUNCTION(phpdbg) /* {{{ */ PHPDBG_G(oplog) = NULL; } + if (PHPDBG_G(ops)) { + destroy_op_array(PHPDBG_G(ops)); + efree(PHPDBG_G(ops)); + PHPDBG_G(ops) = NULL; + } + if (PHPDBG_G(oplog_list)) { phpdbg_oplog_list *cur = PHPDBG_G(oplog_list); do { |