diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-07-27 10:46:58 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-07-27 10:46:58 +0300 |
commit | 9aa5967a5f449a6b6686ff3de96102b801ecfff4 (patch) | |
tree | efe17dfc3d54a6a72918387b96b7f04f946ca0f5 | |
parent | f66627abffeef11774e6d4de1726642275077eb2 (diff) | |
download | php-git-9aa5967a5f449a6b6686ff3de96102b801ecfff4.tar.gz |
Fixed memory leaks
-rw-r--r-- | ext/opcache/jit/zend_jit_disasm_x86.c | 3 |
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); |