summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-08-04 01:22:04 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-08-04 01:22:04 +0200
commitd0ad621906dcf2137119c85f2cfb5361c245a06f (patch)
tree3c0b422f5fca325d56905b3f34b1d5009332f401 /sapi/phpdbg/phpdbg.c
parentd8fe645db444e54fcc8b2555c08a5021c17ca2d3 (diff)
downloadphp-git-d0ad621906dcf2137119c85f2cfb5361c245a06f.tar.gz
Fix further leaks
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c6
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 {