summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-10-31 01:20:38 +0300
committerDmitry Stogov <dmitry@zend.com>2017-10-31 01:20:38 +0300
commit8482a6f51184c1c099a74c8252ca2b609f3b5ea7 (patch)
tree2fbedb502f63736b2c15f9d96d881ab5cc86eeee /Zend/zend_opcode.c
parent02d6c259b9ba4a2ad8f54471860ac0c446b69af0 (diff)
downloadphp-git-8482a6f51184c1c099a74c8252ca2b609f3b5ea7.tar.gz
Fixed use-after free introduced in fcc08ce19f39f7ab1381ecc8a010037d41819329
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 2382afbfb9..3e01b3fc72 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -351,8 +351,8 @@ ZEND_API void destroy_zend_class(zval *zv)
if (c->doc_comment) {
zend_string_release(c->doc_comment);
}
- free(c);
}
+ free(c);
} ZEND_HASH_FOREACH_END();
zend_hash_destroy(&ce->constants_table);
}