summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/jit/zend_jit_disasm_x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/opcache/jit/zend_jit_disasm_x86.c b/ext/opcache/jit/zend_jit_disasm_x86.c
index 2e73648257..6124c947b2 100644
--- a/ext/opcache/jit/zend_jit_disasm_x86.c
+++ b/ext/opcache/jit/zend_jit_disasm_x86.c
@@ -190,7 +190,8 @@ static void zend_jit_disasm_destroy_symbols(zend_sym_node *n) {
if (n) {
if (n->child[0]) {
zend_jit_disasm_destroy_symbols(n->child[0]);
- } else if (n->child[1]) {
+ }
+ if (n->child[1]) {
zend_jit_disasm_destroy_symbols(n->child[1]);
}
free(n);