From: Dmitry Stogov Date: Mon, 27 Jul 2020 07:46:58 +0000 (+0300) Subject: Fixed memory leaks X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aa5967a5f449a6b6686ff3de96102b801ecfff4;p=php Fixed memory leaks --- 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);