com php-src: Fixed memory leaks: ext/opcache/jit/zend_jit_d isasm_x86.c

From: Date: Mon, 27 Jul 2020 07:46:58 +0000
Subject: com php-src: Fixed memory leaks: ext/opcache/jit/zend_jit_d isasm_x86.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112364@lists.php.net to get a copy of this message
Commit: 9aa5967a5f449a6b6686ff3de96102b801ecfff4 Author: Dmitry Stogov <dmitry@zend.com> Mon, 27 Jul 2020 10:46:58 +0300 Parents: f66627abffeef11774e6d4de1726642275077eb2 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9aa5967a5f449a6b6686ff3de96102b801ecfff4 Log: Fixed memory leaks Changed paths: M ext/opcache/jit/zend_jit_disasm_x86.c Diff: 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);

« previous php.cvs (#112364) next »